diff options
author | dancer <dancer> | 2006-01-06 12:30:51 +0000 |
---|---|---|
committer | dancer <dancer> | 2006-01-06 12:30:51 +0000 |
commit | 584955857cde0969f3b736d218b96b8804f75f86 (patch) | |
tree | edf0a098a5a5f6e21c5cefe2d96dbac00309ee94 /pbuilder-buildpackage | |
parent | 873faeed6d8c94f2168f380a06de9396eca32e2d (diff) | |
download | pbuilder-584955857cde0969f3b736d218b96b8804f75f86.tar pbuilder-584955857cde0969f3b736d218b96b8804f75f86.tar.gz |
344958 fix was incomplete, re-fix.
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-x | pbuilder-buildpackage | 5 |
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 |