No need to break them if you move the directories around.
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( './' );
activate($filelist_db);
#FIXME: hardcoded archs. (debports has no contrib/non-free)
if ($arch !~ m/^kfreebsd-.*$/) {
- system("ln", "-sf", $filelist_db,
+ system("ln", "-sf", basename($filelist_db),
"$DBDIR/filelists_${suite}_all.db") == 0
or die "Oops";
}