diff options
author | Mandrake <mandrake@mandriva.com> | 2006-10-31 11:37:41 +0000 |
---|---|---|
committer | Mandrake <mandrake@mandriva.com> | 2006-10-31 11:37:41 +0000 |
commit | c14ba17e80e641ff619e2fa82b6b7cb5d8640550 (patch) | |
tree | 90448303b1ea3971b7070398cdd896adf752aaac | |
parent | 6e168107c4b6e0182184ea107e7accc68672ebb2 (diff) | |
download | mga-youri-core-c14ba17e80e641ff619e2fa82b6b7cb5d8640550.tar mga-youri-core-c14ba17e80e641ff619e2fa82b6b7cb5d8640550.tar.gz mga-youri-core-c14ba17e80e641ff619e2fa82b6b7cb5d8640550.tar.bz2 mga-youri-core-c14ba17e80e641ff619e2fa82b6b7cb5d8640550.tar.xz mga-youri-core-c14ba17e80e641ff619e2fa82b6b7cb5d8640550.zip |
sign with the old way
-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} . |