diff options
-rw-r--r-- | lib/Youri/Package/URPM.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Youri/Package/URPM.pm b/lib/Youri/Package/URPM.pm index 667284c..47519ab 100644 --- a/lib/Youri/Package/URPM.pm +++ b/lib/Youri/Package/URPM.pm @@ -363,13 +363,17 @@ sub satisfy_range { } sub sign { - my ($self, $name, $path, $passphrase) = @_; + my ($self, $name, $path, $passphrase, $target) = @_; croak "Not a class method" unless ref $self; # check if parent directory is writable my $parent = (File::Spec->splitpath($self->{_file}))[1]; croak "Unsignable package, parent directory is read-only" unless -w $parent; + + # FIXME Will have to change that + # we sign with cooker key even fro 2007.0 because this is for testing section + return !system("sudo -H /root/bin/resign_cooker $self->{_file}"); my $command = 'LC_ALL=C rpm --resign ' . $self->{_file} . |