diff options
author | Mandrake <mandrake@mandriva.com> | 2006-10-26 11:26:38 +0000 |
---|---|---|
committer | Mandrake <mandrake@mandriva.com> | 2006-10-26 11:26:38 +0000 |
commit | ac1c333089b7ae34f98a941ecc763b44822420d0 (patch) | |
tree | dca9bd44f3207d3ea9a8e93dfee0b466c6cf5c1f /lib/Youri/Submit | |
parent | d507758cd11e7e1bad5b5ebfd13319157f44e275 (diff) | |
download | mga-youri-submit-ac1c333089b7ae34f98a941ecc763b44822420d0.tar mga-youri-submit-ac1c333089b7ae34f98a941ecc763b44822420d0.tar.gz mga-youri-submit-ac1c333089b7ae34f98a941ecc763b44822420d0.tar.bz2 mga-youri-submit-ac1c333089b7ae34f98a941ecc763b44822420d0.tar.xz mga-youri-submit-ac1c333089b7ae34f98a941ecc763b44822420d0.zip |
we perform CVS commit asynchronously
Diffstat (limited to 'lib/Youri/Submit')
-rw-r--r-- | lib/Youri/Submit/Action/CVS.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Youri/Submit/Action/CVS.pm b/lib/Youri/Submit/Action/CVS.pm index b9a3741..eab9937 100644 --- a/lib/Youri/Submit/Action/CVS.pm +++ b/lib/Youri/Submit/Action/CVS.pm @@ -36,6 +36,17 @@ sub run { return unless $package->is_source(); + my $file = $package->get_file(); + my $dest = $repository->get_cvs_queue($package, $target, $define); + $dest or return; + system("install -d -m " . ($self->{_perms} + 111) . " $dest") + unless -d $dest; + + # install file to new location + system("install -m $self->{_perms} $file $dest"); + + return 1; + my $name = $package->get_name(); my $version = $package->get_version(); my $release = $package->get_release(); |