]> git.deb.at Git - deb/packages.git/commitdiff
parse-contents: Create "all" symlinks relative instead of absolute
authorFrank Lichtenheld <frank@lichtenheld.de>
Thu, 21 Feb 2008 01:27:57 +0000 (02:27 +0100)
committerFrank Lichtenheld <frank@lichtenheld.de>
Thu, 21 Feb 2008 01:27:57 +0000 (02:27 +0100)
No need to break them if you move the directories around.

bin/parse-contents

index f7fa9a44d3419166435ccb96d8e7311226812080..82df0b87b74341795df60a232670cd17ded0b9fc 100755 (executable)
@@ -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( './' );
@@ -142,7 +143,7 @@ for my $suite (@suites) {
            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";
            }