[Pbuilder-maint] pbuilder CVS update: pbuilder ChangeLog pdebuild-internal

Junichi Uekawa dancer at netfort.gr.jp
Sat Nov 4 06:25:58 CET 2006


Hi,

>   Index: pdebuild-internal
>   ===================================================================
>   RCS file: /cvsroot/pbuilder/pbuilder/pdebuild-internal,v
>   retrieving revision 1.13
>   retrieving revision 1.14
>   diff -u -r1.13 -r1.14
>   --- pdebuild-internal	25 Jun 2006 16:39:31 -0000	1.13
>   +++ pdebuild-internal	3 Nov 2006 17:45:01 -0000	1.14
>   @@ -73,9 +73,20 @@
>    /usr/lib/pbuilder/pbuilder-satisfydepends
>    apt-get install -y --force-yes fakeroot
>    
>   -# create the user similar to that used outside 
>   +# we will need "passwd" for groupadd/useradd, retain whether it was installed
>   +# warning: dpkg --get-selections returns true for unknown packages
>   +PASSWD_SELECTION="$(LC_ALL=C dpkg --get-selections passwd && true)"
>   +if [ -z "$PASSWD_SELECTION" ]; then
>   +    PASSWD_SELECTION="passwd                                          purge"
>   +fi
>   +# install passwd
>   +apt-get install -y --force-yes passwd
>   +# create the user similar to that used outside
>    groupadd -g "${BUILDRESULTGID}" -o pbgroup
>    useradd -g pbgroup -u "${BUILDRESULTUID}" -o pbuser
>   +# restore the state of the passwd package
>   +echo "$PASSWD_SELECTION" | LC_ALL=C dpkg --set-selections
>   +apt-get dselect-upgrade -u -y --force-yes

It's going to be cleaned after this, I don't think it's really
necessary to restore the state before.

I'd rather like a simpler approach, like:

-    apt-get install -y --force-yes fakeroot
+    apt-get install -y --force-yes fakeroot passwd

regards,
	junichi
-- 
dancer@{debian.org,netfort.gr.jp}   Debian Project



More information about the Pbuilder-maint mailing list