aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordancer <dancer>2002-10-30 08:42:07 +0000
committerdancer <dancer>2002-10-30 08:42:07 +0000
commitdc85401fcc7bfe69a192bc4d8b61aa5f37055f1e (patch)
treea1e819912d41ff5e767480736ed51c62f930d995
parentd2253141addb9872477a6925e7079b16d32e54f5 (diff)
downloadpbuilder-dc85401fcc7bfe69a192bc4d8b61aa5f37055f1e.tar
pbuilder-dc85401fcc7bfe69a192bc4d8b61aa5f37055f1e.tar.gz
+ * debuild-pbuilder: a better handling of directory, copied from pdebuild.
-rw-r--r--ChangeLog2
-rw-r--r--debian/changelog5
-rw-r--r--debuild-pbuilder10
3 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 59645d9..f1b08b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2002-10-30 Junichi Uekawa <dancer@debian.org>
+ * debuild-pbuilder: a better handling of directory, copied from pdebuild.
+
* pbuilder-satisfydepends: make CHROOTEXEC invocation to make
it less ambiguous, for versiondeps.
diff --git a/debian/changelog b/debian/changelog
index c9091c5..e1e4118 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,11 @@
pbuilder (0.48) UNRELEASED; urgency=low
* Not a released version.
+ * improved handling of directory in debuild-pbuilder.
+ * Version-deps parser changed slightly.
+ * unset LOGNAME.
- -- Junichi Uekawa <dancer@debian.org> Tue, 29 Oct 2002 22:59:12 +0900
+ -- Junichi Uekawa <dancer@debian.org> Wed, 30 Oct 2002 17:40:02 +0900
pbuilder (0.47) unstable; urgency=low
diff --git a/debuild-pbuilder b/debuild-pbuilder
index 9abf748..1efdb6b 100644
--- a/debuild-pbuilder
+++ b/debuild-pbuilder
@@ -1,5 +1,15 @@
#!/bin/bash
set -e
+
+while ! test -d ./debian -o "$(pwd)" = "/" ; do
+ cd ..;
+done
+
+if test ! -d ./debian; then
+ echo "Cannot find ./debian dir"
+ exit 1
+fi;
+
. /usr/lib/pbuilder/pbuilder-loadconfig
"$PBUILDERROOTCMD" /usr/lib/pbuilder/pbuilder-satisfydepends
/usr/bin/debuild "$@"