aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorEddy Petrișor <eddy.petrisor@gmail.com>2008-03-06 02:29:34 +0200
committerEddy Petrișor <eddy.petrisor@gmail.com>2008-03-06 02:45:53 +0200
commit00e57f97b06d0444e0ba5fc77179c09a72cf8439 (patch)
tree1793e529f6ec53f89e8d8929837c9a09697b336d /debian
parent2c09082e766f6e08cfe3e2b7f0336219e029b2bd (diff)
downloadpbuilder-00e57f97b06d0444e0ba5fc77179c09a72cf8439.tar
pbuilder-00e57f97b06d0444e0ba5fc77179c09a72cf8439.tar.gz
Accepting to rewrite the pbuilderrc is done just for on run of configure
When accepting to rewrite the config, most definetly, the user wants just this once to accept the rewrite, not every time from this point onwards (including upgrades). In other words, accepting rewrite is forgot immediately, and valid only once. Signed-off-by: Eddy Petrișor <eddy.petrisor@gmail.com>
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/pbuilder.postinst3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/pbuilder.postinst b/debian/pbuilder.postinst
index 2b046f3..8665c49 100755
--- a/debian/pbuilder.postinst
+++ b/debian/pbuilder.postinst
@@ -35,6 +35,9 @@ case "$1" in
db_get pbuilder/rewrite
[ "$RET" = "true" ] || exit 0
+
+ # make sure latter calls do not overwrite stuff silently
+ db_set pbuilder/rewrite "false"
fi
else
echo "MIRRORSITE=$PLACEHOLDER" > "$CONFFILE"