X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=bin%2Fparse-contents;h=16bc7e497f7e9bf25daf0b5c5337415279fd7cff;hp=11d076f49f2799a1f17c747abc5e72e4792bf63f;hb=a6b39cb5eec2cf7d8a0d756f0090a9d8644443c9;hpb=d2c37ad5a233f2026d3309905f6715ec672be45b diff --git a/bin/parse-contents b/bin/parse-contents index 11d076f..16bc7e4 100755 --- a/bin/parse-contents +++ b/bin/parse-contents @@ -46,6 +46,8 @@ use Packages::Config qw( $TOPDIR $DBDIR @ARCHIVES @SUITES @ARCHITECTURES ); my @archives = @ARCHIVES; my @suites = @SUITES; my @archs = @ARCHITECTURES; +my %deborts_hash; +@deborts_hash{qw( alpha avr32 hppa m68k powerpcspe sh4 sparc64 )} = (); $DBDIR .= "/contents"; mkdirp( $DBDIR ); @@ -142,7 +144,7 @@ for my $suite (@suites) { activate($filelist_db); #FIXME: hardcoded archs. (debports has no contrib/non-free) - if ($arch ne 'avr32' and $arch ne 'm68k') { + if (not exists $deborts_hash{$arch}) { system("ln", "-sf", basename($filelist_db), "$DBDIR/filelists_${suite}_all.db") == 0 or die "Oops";