From c14ba17e80e641ff619e2fa82b6b7cb5d8640550 Mon Sep 17 00:00:00 2001 From: Mandrake Date: Tue, 31 Oct 2006 11:37:41 +0000 Subject: sign with the old way --- lib/Youri/Package/URPM.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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} . -- cgit v1.2.1