aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordancer <dancer>2005-04-21 23:10:23 +0000
committerdancer <dancer>2005-04-21 23:10:23 +0000
commit7ab47211b9302dff121ce49dd5cc64ace65fa83a (patch)
tree595d9ffe84449800df10bafa18893feabf0e3ee3
parent7429331ecf6966c8c42f6ab7af3a64360102b887 (diff)
downloadpbuilder-7ab47211b9302dff121ce49dd5cc64ace65fa83a.tar
pbuilder-7ab47211b9302dff121ce49dd5cc64ace65fa83a.tar.gz
+ * save apt cache after running B hook in build target; so that
+ we don't keep redownloading lintian/linda . (closes: #296999)
-rw-r--r--ChangeLog5
-rw-r--r--debian/changelog6
-rwxr-xr-xpbuilder-buildpackage1
-rw-r--r--pbuilder-modules1
4 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1210a63..1cd3991 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-22 Junichi Uekawa <dancer@debian.org>
+
+ * pbuilder-buildpackage: call save_aptcache after running final B hook
+ on build.
+
2005-04-16 Junichi Uekawa <dancer@debian.org>
* pdebuild.1:
diff --git a/debian/changelog b/debian/changelog
index 5be6c8e..3f79f83 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,10 @@
-pbuilder (0.127) UNRELEASED; urgency=low
+pbuilder (0.127) unstable; urgency=low
* pdebuild.1, pdebuild-user-mode-linux.1: --debsign-k requires key-id.
+ * save apt cache after running B hook in build target; so that
+ we don't keep redownloading lintian/linda . (closes: #296999)
- -- Junichi Uekawa <dancer@debian.org> Sat, 16 Apr 2005 23:50:55 +0900
+ -- Junichi Uekawa <dancer@debian.org> Fri, 22 Apr 2005 07:38:16 +0900
pbuilder (0.126) unstable; urgency=low
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index c2d70d4..e2c1460 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -127,6 +127,7 @@ fi
trap umountproc_cleanbuildplace exit
executehooks "B"
+save_aptcache
trap cleanbuildplace exit
umountproc
diff --git a/pbuilder-modules b/pbuilder-modules
index dda4edc..e40ec3f 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -306,6 +306,7 @@ function recover_aptcache() {
function save_aptcache() {
# save the current aptcache archive
+ # it is safe to call this function several times.
local doit
if [ -n "$APTCACHE" ]; then
echo "Copying back the cached apt archive contents"