[intrepid] pbuilder builds a package twice by default

Bug #258808 reported by Michael Bienia
6
Affects Status Importance Assigned to Milestone
pbuilder (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

Binary package hint: pbuilder

The new option --twice should get renamed to --once :)

pbuilder 0.181ubuntu4 got a new option to build a package twice in a row. Unfortunately there is a bug in processing this option which makes pbuilder build a package twice when --twice is not set.

From /usr/lib/pbuilder/pbuilder-buildpackage:

if [ -z "$TWICE" ]; then
        DPKG_COMMANDLINE="$DPKG_COMMANDLINE; dpkg-buildpackage -us -uc $DEBBUILDOPTS"
fi

The test should happen with -n (nonzero) instead of -z (zero).

Related branches

Revision history for this message
Nicolas Valcarcel (nvalcarcel) wrote :

Uploading debdiff

Changed in pbuilder:
status: New → Confirmed
Revision history for this message
Michael Vogt (mvo) wrote :

HI,

thanks for the patch. I changed the "[ ! -z ]" to "[ -n ]" and will upload.

Changed in pbuilder:
assignee: nobody → mvo
importance: Undecided → Medium
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pbuilder - 0.181ubuntu5

---------------
pbuilder (0.181ubuntu5) intrepid; urgency=low

  * Fix condition that makes build twice in a row the default behavior.
    (LP: #258808)

 -- Nicolas Valcarcel <email address hidden> Mon, 18 Aug 2008 00:54:57 -0500

Changed in pbuilder:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.