~vcs-imports/dehs/trunk

« back to all changes in this revision

Viewing changes to dehs_pg.php

  • Committer: geissert
  • Date: 2010-09-03 17:20:35 UTC
  • Revision ID: vcs-imports@canonical.com-20100903172035-b4x9ocd8vd2rkrkq
Avoid dpkg errors when upstream's version starts with a dash

Show diffs side-by-side

added added

removed removed

Lines of Context:
548
548
        $extendedConv = false;
549
549
    }
550
550
 
551
 
    passthru("dpkg --compare-versions ".escapeshellarg($up_vers)." le " . escapeshellarg($dversionAsIs?$debian_vers:vers_conv($debian_vers, $extendedConv)),$great);
 
551
    passthru("dpkg --compare-versions -- ".escapeshellarg($up_vers)." le " . escapeshellarg($dversionAsIs?$debian_vers:vers_conv($debian_vers, $extendedConv)),$great);
552
552
 
553
553
    return (int)!($great);
554
554
}