You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
862 B
37 lines
862 B
package ksb::Updater::KDEProject; |
|
|
|
# An update class for KDE Project modules (i.e. those that use "repository |
|
# kde-projects" in the configuration file). |
|
|
|
use strict; |
|
use warnings; |
|
use 5.014; |
|
|
|
our $VERSION = '0.10'; |
|
|
|
use ksb::Updater::Git; |
|
our @ISA = qw(ksb::Updater::Git); |
|
|
|
use ksb::Debug; |
|
|
|
sub name |
|
{ |
|
return 'proj'; |
|
} |
|
|
|
# Resolves the requested branch-group for this Updater's module. |
|
# Returns the required branch name, or undef if none is set. |
|
sub _resolveBranchGroup |
|
{ |
|
my ($self, $branchGroup) = @_; |
|
my $module = $self->module(); |
|
|
|
# If we're using a logical group we need to query the global build context |
|
# to resolve it. |
|
my $ctx = $module->buildContext(); |
|
my $resolver = $ctx->moduleBranchGroupResolver(); |
|
my $modulePath = $module->fullProjectPath(); |
|
return $resolver->findModuleBranch($modulePath, $branchGroup); |
|
} |
|
|
|
1;
|
|
|