diff options
author | dancer <dancer> | 2005-12-04 05:03:24 +0000 |
---|---|---|
committer | dancer <dancer> | 2005-12-04 05:03:24 +0000 |
commit | 715cb236fde50ada081fde416e65551d8ac2082a (patch) | |
tree | d8421d06b47ab5aaefab02436b57c7e24f1ebd2e /pbuilder-buildpackage-funcs | |
parent | c083f6c7fc979dc0a9cb45e687e56360621d4cf5 (diff) | |
download | pbuilder-715cb236fde50ada081fde416e65551d8ac2082a.tar pbuilder-715cb236fde50ada081fde416e65551d8ac2082a.tar.gz |
* Bug fix: "pbuilder-buildpackage-funcs check for createbuilduser for
SUTOUSER is bogus", thanks to Brian Nelson (Closes: #338976).
* Bug fix: "--no-targz option creates tarball in pbuilder create",
thanks to Junichi Uekawa (Closes: #341916).
Diffstat (limited to 'pbuilder-buildpackage-funcs')
-rw-r--r-- | pbuilder-buildpackage-funcs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-buildpackage-funcs b/pbuilder-buildpackage-funcs index 1446b21..d8fe0ba 100644 --- a/pbuilder-buildpackage-funcs +++ b/pbuilder-buildpackage-funcs @@ -80,8 +80,8 @@ function cowprotect () { } function createbuilduser () { - # create the build user - if [ -n "$SUTOUSER" ]; then + # create the build user, if it is necessary and specified. + if [ -n "$BUILDUSERNAME" -a -n "$BUILDUSERID" ]; then if ! grep -q ^$BUILDUSERNAME: $BUILDPLACE/etc/passwd; then cowprotect $BUILDPLACE/etc/passwd echo "$BUILDUSERNAME:x:$BUILDUSERID:$BUILDUSERID:,,,:/tmp/buildd:/bin/sh" >> $BUILDPLACE/etc/passwd |