]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
apltest: ignore architecture
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 22 Jul 2013 05:27:48 +0000 (07:27 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 22 Jul 2013 05:27:48 +0000 (07:27 +0200)
aplinfo/apltest.pl

index f6c84da9378e40913f005bd216f69fb69467a621..7346f31dfa19f98cf241799e930580600ea9efb6 100755 (executable)
@@ -13,8 +13,11 @@ foreach my $k (keys %{$pkglist->{'all'}}) {
     next if $k eq 'pve-web-news';
     my $res = $pkglist->{'all'}->{$k};
 
-    my $template = "$res->{os}-$res->{package}_$res->{version}_i386.tar.gz";
+    my $template = "$res->{os}-$res->{package}_$res->{version}_ARCH.tar.gz";
     $template =~ s/$res->{os}-$res->{os}-/$res->{os}-/;
+    
+    $k =~ s/_amd64\.tar\.gz$/_ARCH.tar.gz/;
+    $k =~ s/_i386\.tar\.gz$/_ARCH.tar.gz/;
 
     if ($k ne $template) {
        print "ERROR: $k != $template\n";