aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordancer <dancer>2006-01-06 12:30:51 +0000
committerdancer <dancer>2006-01-06 12:30:51 +0000
commit584955857cde0969f3b736d218b96b8804f75f86 (patch)
treeedf0a098a5a5f6e21c5cefe2d96dbac00309ee94
parent873faeed6d8c94f2168f380a06de9396eca32e2d (diff)
downloadpbuilder-584955857cde0969f3b736d218b96b8804f75f86.tar
pbuilder-584955857cde0969f3b736d218b96b8804f75f86.tar.gz
344958 fix was incomplete, re-fix.
-rwxr-xr-xpbuilder-buildpackage5
1 files changed, 3 insertions, 2 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index 5c1cd24..82870e0 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -138,10 +138,11 @@ save_aptcache
trap cleanbuildplace exit
umountproc
+BUILDRESULTUID="${BUILDRESULTUID:-${SUDO_UID:-0}}"
+BUILDRESULTGID="${BUILDRESULTGID:-${SUDO_GID:-0}}"
+
if [ -d "${BUILDRESULT}" ]; then
- BUILDRESULTUID="${BUILDRESULTUID:-${SUDO_UID:-0}}"
chown "${BUILDRESULTUID}:${BUILDRESULTGID}" "${BUILDPLACE}"/tmp/buildd/*
- BUILDRESULTGID="${BUILDRESULTGID:-${SUDO_GID:-0}}"
chgrp "${BUILDRESULTGID}" "${BUILDPLACE}"/tmp/buildd/*
cp -p "${BUILDPLACE}"/tmp/buildd/* "${BUILDRESULT}" 2>/dev/null || true
else