From 67123228ce3ae30d114100111db9500dbf2c714b Mon Sep 17 00:00:00 2001 From: Samir Date: Sat, 22 Dec 2012 01:52:24 +0000 Subject: [PATCH] don't check pkgrel, use testing instead of lib32-testing --- diff-lib32 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/diff-lib32 b/diff-lib32 index ce9914b..1495a35 100755 --- a/diff-lib32 +++ b/diff-lib32 @@ -2,19 +2,20 @@ use warnings; use strict; -my @lib32_pkgs = `pacman -Sl lib32-testing lib32`; +my @lib32_pkgs = `pacman -Sl testing lib32`; +my %lib32; foreach (@lib32_pkgs) { chomp; - next if (! /(?.+) (?.+) (?.+)-(?\d+)/); + next if (! /(?.+) (?lib32-.+) (?.+)-(?\d+)/); my $lib32_repo = $+{repo}; my $lib32_pkgname = $+{lib32_pkgname}; my $lib32_pkgver = $+{lib32_pkgver}; my $lib32_pkgrel = $+{lib32_pkgrel}; - next if $lib32_pkgname !~ /lib32-/; - + next if exists $lib32{$lib32_pkgname}; + $lib32{$lib32_pkgname}=""; my $pkgname = $lib32_pkgname; $pkgname =~ s/lib32-//; @@ -28,7 +29,7 @@ foreach (@lib32_pkgs) { my $pkgver = $+{pkgver}; my $pkgrel = $+{pkgrel}; - if ("$lib32_pkgver-$lib32_pkgrel" lt "$pkgver-$pkgrel") { + if ("$lib32_pkgver" lt "$pkgver") { print "$lib32_repo/$lib32_pkgname is older than $repo/$pkgname\n"; } }