X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=bin%2Fparse-contents;h=11d076f49f2799a1f17c747abc5e72e4792bf63f;hp=c254375f10a9403d4d0bf27731020db03604b125;hb=0f318fa9ad9d473b543a48f46a7714a11283d300;hpb=ba785a886ccbfb71d6ad84d0c615479939a0c62f diff --git a/bin/parse-contents b/bin/parse-contents index c254375..11d076f 100755 --- a/bin/parse-contents +++ b/bin/parse-contents @@ -38,6 +38,7 @@ use English; use DB_File; use Storable; use File::Path; +use File::Basename; use Packages::CommonCode qw(:all); use Packages::Config qw( $TOPDIR $DBDIR @ARCHIVES @SUITES @ARCHITECTURES ); &Packages::Config::init( './' ); @@ -140,9 +141,12 @@ for my $suite (@suites) { rename("$DBDIR/reverse.tmp", "$DBDIR/reverse_${suite}_${arch}.txt"); activate($filelist_db); - system("ln", "-sf", $filelist_db, - "$DBDIR/filelists_${suite}_all.db") == 0 - or die "Oops"; + #FIXME: hardcoded archs. (debports has no contrib/non-free) + if ($arch ne 'avr32' and $arch ne 'm68k') { + system("ln", "-sf", basename($filelist_db), + "$DBDIR/filelists_${suite}_all.db") == 0 + or die "Oops"; + } } }