diff options
author | Mandrake <mandrake@mandriva.com> | 2006-10-31 11:40:56 +0000 |
---|---|---|
committer | Mandrake <mandrake@mandriva.com> | 2006-10-31 11:40:56 +0000 |
commit | 2a610bba02af4eaacef93e6e22a0a8068361fdf3 (patch) | |
tree | ecc3f9bd335bcfd495f56edd83041de8fd04d8f2 | |
parent | ac1c333089b7ae34f98a941ecc763b44822420d0 (diff) | |
download | mga-youri-submit-2a610bba02af4eaacef93e6e22a0a8068361fdf3.tar mga-youri-submit-2a610bba02af4eaacef93e6e22a0a8068361fdf3.tar.gz mga-youri-submit-2a610bba02af4eaacef93e6e22a0a8068361fdf3.tar.bz2 mga-youri-submit-2a610bba02af4eaacef93e6e22a0a8068361fdf3.tar.xz mga-youri-submit-2a610bba02af4eaacef93e6e22a0a8068361fdf3.zip |
unlink file in Archive for the moment (should be done in clean but the code to detect which packages is obsoleted has to be moved
-rw-r--r-- | lib/Youri/Submit/Action/Archive.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Youri/Submit/Action/Archive.pm b/lib/Youri/Submit/Action/Archive.pm index 721eab9..965fc64 100644 --- a/lib/Youri/Submit/Action/Archive.pm +++ b/lib/Youri/Submit/Action/Archive.pm @@ -30,6 +30,7 @@ sub run { my ($self, $package, $repository, $target, $define) = @_; croak "Not a class method" unless ref $self; + # all this should be in Mandriva_upload.pm my $section = $repository->_get_section($package, $target, $define); my $main_section = $repository->_get_main_section($package, $target, $define); print "section $section main_section $main_section\n" if $self->{_verbose}; @@ -58,6 +59,9 @@ sub run { # install file to new location system("install -m $self->{_perms} $file $dest"); + + print "deleting file $file\n" if $self->{_verbose}; + unlink $file unless $self->{_test}; } } } |