Author: adsb
Date: 2009-09-05 00:28:22 +0000 (Sat, 05 Sep 2009)
New Revision: 1995

Modified:
   trunk/scripts/uscan.pl
Log:
Revert r1994

Modified: trunk/scripts/uscan.pl
===================================================================
--- trunk/scripts/uscan.pl      2009-09-05 00:13:21 UTC (rev 1994)
+++ trunk/scripts/uscan.pl      2009-09-05 00:28:22 UTC (rev 1995)
@@ -1451,6 +1451,7 @@
     # Do whatever the user wishes to do
     if ($action) {
        my $usefile = "$destdir/$newfile_base";
+       my @cmd = shellwords($action);
        if ($symlink =~ /^(symlink|rename)$/
            and $newfile_base =~ /\.(tar\.gz|tgz)$/) {
            $usefile = "$destdir/${pkg}_${newversion}.orig.tar.gz";
@@ -1462,11 +1463,9 @@
 
        # Any symlink requests are already handled by uscan
        if ($action =~ /^uupdate(\s|$)/) {
-           $action =~ s/^uupdate/uupdate --no-symlink/;
+           push @cmd, "--no-symlink";
        }
 
-       my @cmd = shellwords($action);
-
        if ($watch_version > 1) {
            push @cmd, ("--upstream-version", "$newversion", "$usefile");
        } else {



-- 
To unsubscribe, send mail to [email protected].

Reply via email to