aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-buildpackage
diff options
context:
space:
mode:
authordancer <dancer>2001-10-16 14:36:22 +0000
committerdancer <dancer>2001-10-16 14:36:22 +0000
commitad34a93153021b06c56a49902c9e5831b6254a17 (patch)
tree45ae2cc0841be1ec0e4dfa45f312b383350e9799 /pbuilder-buildpackage
parent5ad0c1d38eebdc05f2e0340d9ba6548c6524a60d (diff)
downloadpbuilder-ad34a93153021b06c56a49902c9e5831b6254a17.tar
pbuilder-ad34a93153021b06c56a49902c9e5831b6254a17.tar.gz
man things changed?
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-xpbuilder-buildpackage12
1 files changed, 10 insertions, 2 deletions
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