diff options
Diffstat (limited to 'sort-deb')
-rwxr-xr-x | sort-deb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,8 +28,8 @@ sub dpkgcmp{ my ($i,$j)=@_; - chomp $i; - chomp $j; + ($i) = $i =~ /(\S+)/; + ($j) = $j =~ /(\S+)/; return system('dpkg', '--compare-versions', $i, 'lt', $j) * 1 + system('dpkg', '--compare-versions', $i, 'gt', $j) *-1; }; |