X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=bin%2Fparse-contents;h=22a72e8b507a5ae9adfd8219da3be4b1cf0e2c88;hb=5db229e24c1403bdb4f49ba1f7d463c8e4a274af;hp=1f4f58d9aea8f414201bd6f894fd694d3ddf25d3;hpb=423d06ae0e7bc1609a0aa1e8bbc2b4dfe93a62de;p=deb%2Fpackages.git diff --git a/bin/parse-contents b/bin/parse-contents index 1f4f58d..22a72e8 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( avr32 m68k powerpcspe sh4 sparc64 )} = (); $DBDIR .= "/contents"; mkdirp( $DBDIR ); @@ -144,7 +146,7 @@ for my $suite (@suites) { activate($filelist_db); #FIXME: hardcoded archs. (debports has no contrib/non-free) - if ($arch !~ m/^kfreebsd-.*$/) { + if (not exists $deborts_hash{$arch}) { system("ln", "-sf", basename($filelist_db), "$DBDIR/filelists_${suite}_all.db") == 0 or die "Oops";