]> git.rmz.io Git - dotfiles.git/commitdiff
finally fix lib32-diff?
authorSamir Benmendil <samir.benmendil@gmail.com>
Sat, 19 Jan 2013 02:12:33 +0000 (03:12 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Sat, 19 Jan 2013 02:12:33 +0000 (03:12 +0100)
bin/lib32-diff

index e494c15766a6772ee8293c1fb9fc5cc046b02b17..039d7e1c57cbb46ee89dbaaeb83ac4794cf253f9 100755 (executable)
@@ -23,10 +23,10 @@ foreach (@lib32_pkgs) {
     my $pkgname = $lib32_pkgname;
     $pkgname =~ s/lib32-//;
 
-    my $pkg = `pacman -Ss "^$pkgname" | grep "/$pkgname " | head -n1`;
+    my $pkg = `pacman -Ss '^$pkgname\$' | grep "/$pkgname " | head -n1`;
     chomp $pkg;
 
-    next if ( $pkg !~ /(?<repo>.+)\/(?<pkgname>.+) (?<pkgver>.+)-(?<pkgrel>\d+)/ );
+    next if ( $pkg !~ /(?<repo>.+)\/(?<pkgname>\S+) (?<pkgver>.+)-(?<pkgrel>\d+)/ );
 
     my $repo = $+{repo};
     my $pkgver = $+{pkgver};