aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-03-28 08:18:06 +0900
committerJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-03-28 08:18:06 +0900
commiteef8b33657d4fcc73c90d9661ac9c088683a2341 (patch)
treea650810e29babb8c6f739d7127e8c003b5c411f7 /pbuilder-modules
parentca927fa74277acb36184499f005310cc6a8e0eb4 (diff)
downloadpbuilder-eef8b33657d4fcc73c90d9661ac9c088683a2341.tar
pbuilder-eef8b33657d4fcc73c90d9661ac9c088683a2341.tar.gz
391915: Try to warn only if network configuration files are not found on host OS, not error out.
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules10
1 files changed, 6 insertions, 4 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
index 93880fa..dd135d8 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -329,10 +329,12 @@ function copy_local_configuration () {
echo " -> copying local configuration"
for a in hosts hostname resolv.conf; do
rm -f "$BUILDPLACE/etc/$a"
- if [ ! -f "/etc/$a" ]; then
- echo "E: /etc/$a does not exist, your setup is insane. fix it" >&2
- fi
- cp $( readlink -f "/etc/$a" ) "$BUILDPLACE/etc/$a";
+ if [ -f "/etc/$a" ]; then
+ rm -f "$BUILDPLACE/etc/$a"
+ cp $( readlink -f "/etc/$a" ) "$BUILDPLACE/etc/$a";
+ else
+ echo "W: No local /etc/$a to copy, relying on $BUILDPLACE/etc/$a to be correct" >&2
+ fi
done
}