The following commit has been merged in the master branch:
commit 7d467e2f9060b2028fa7d6cd62a68d08f99b9e73
Author: Cyril Brulebois <[email protected]>
Date:   Sat Jul 24 17:00:44 2010 +0200

    uscan: Get rid of extra quoting in dpkg --compare-versions calls.
    
    Signed-off-by: Cyril Brulebois <[email protected]>
    Signed-off-by: James Vega <[email protected]>

diff --git a/scripts/uscan.pl b/scripts/uscan.pl
index c59b921..ec0df77 100755
--- a/scripts/uscan.pl
+++ b/scripts/uscan.pl
@@ -1194,7 +1194,7 @@ EOF
 
     # Can't just use $lastversion eq $newversion, as then 0.01 and 0.1
     # compare different, whereas they are treated as equal by dpkg
-    if (system("dpkg", "--compare-versions", "'$mangled_lastversion'", "eq", 
"'$newversion'") == 0) {
+    if (system("dpkg", "--compare-versions", "$mangled_lastversion", "eq", 
"$newversion") == 0) {
        if ($verbose or ($download == 0 and $report and ! $dehs)) {
            print $pkg_report_header;
            $pkg_report_header = '';
@@ -1221,7 +1221,7 @@ EOF
     # We use dpkg's rules to determine whether our current version
     # is newer or older than the remote version.
     if (!defined $download_version) {
-       if (system("dpkg", "--compare-versions", "'$mangled_lastversion'", 
"gt", "'$newversion'") == 0) {
+       if (system("dpkg", "--compare-versions", "$mangled_lastversion", "gt", 
"$newversion") == 0) {
            if ($verbose) {
                print " => remote site does not even have current version\n";
            } elsif ($dehs) {

-- 
Git repository for devscripts


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

Reply via email to