From ad34a93153021b06c56a49902c9e5831b6254a17 Mon Sep 17 00:00:00 2001 From: dancer Date: Tue, 16 Oct 2001 14:36:22 +0000 Subject: man things changed? --- pbuilder-buildpackage | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'pbuilder-buildpackage') diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index 7be44b6..94aea5a 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -159,7 +159,11 @@ fi if [ -n "$APTCACHE" ]; then echo "Obtaining the cached apt archive contents" - cp "$APTCACHE"/*.deb "$BUILDPLACE/var/cache/apt/archives/" + if [ "$APTCACHEHARDLINK" = "yes" ]; then + ln "$APTCACHE"/*.deb "$BUILDPLACE/var/cache/apt/archives/" || true + else + cp "$APTCACHE"/*.deb "$BUILDPLACE/var/cache/apt/archives/" || true + fi fi echo Installing the build-deps checkbuilddep @@ -170,7 +174,11 @@ if [ -n "$APTCACHE" ]; then for A in "$BUILDPLACE/var/cache/apt/archives/"*.deb; do if [ ! -f "$APTCACHE/"$(basename "$A") ]; then echo " -> new cache content "$(basename "$A")" added" - cp "$A" "$APTCACHE/" + if [ "$APTCACHEHARDLINK" = "yes" ]; then + ln "$A" "$APTCACHE/" + else + cp "$A" "$APTCACHE/" + fi fi done fi -- cgit v1.2.3