diff options
author | dancer <dancer> | 2003-09-02 13:01:32 +0000 |
---|---|---|
committer | dancer <dancer> | 2003-09-02 13:01:32 +0000 |
commit | 34426e850bf31871a9f7f7921214c5dae774c055 (patch) | |
tree | b8b0f091bc213c2b729e34ab0b7b6e16ffed0e90 | |
parent | 832708e6f4f3bfdc0721ff26c54ee4bd610fd495 (diff) | |
download | pbuilder-34426e850bf31871a9f7f7921214c5dae774c055.tar pbuilder-34426e850bf31871a9f7f7921214c5dae774c055.tar.gz |
+
+ * pbuilder-modules: check if etc/hosts etc. exists before trying to
+ readlink.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | debian/changelog | 6 | ||||
-rw-r--r-- | pbuilder-modules | 3 |
3 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2003-09-02 Junichi Uekawa <dancer@debian.org> + + * pbuilder-modules: check if etc/hosts etc. exists before trying to + readlink. + 2003-09-01 Junichi Uekawa <dancer@debian.org> * debian/changelog: 0.85 diff --git a/debian/changelog b/debian/changelog index e06c604..4ddd297 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +pbuilder (0.86) UNRELEASED; urgency=low + + * check if /etc/hosts etc. exist before trying to readlink and cp. + + -- Junichi Uekawa <dancer@debian.org> Tue, 2 Sep 2003 22:02:46 +0900 + pbuilder (0.85) unstable; urgency=low * Fix "pbuilder create with basetgz option fails due to new readlink behavior" diff --git a/pbuilder-modules b/pbuilder-modules index 1619f0e..2eea12e 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -205,6 +205,9 @@ function copy_local_configuration () { echo " -> copying local configuration" for a in hosts hostname resolv.conf; do rm -f "$BUILDPLACE/etc/$a" + if [ -f readlink -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"; done } |