pbuilder-dist dies when there is no development release

Bug #1068390 reported by Scott Kitterman
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Debian)
Fix Released
Unknown
ubuntu-dev-tools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

pbuilder-dist quantal update
Traceback (most recent call last):
  File "/usr/bin/pbuilder-dist", line 462, in <module>
    main()
  File "/usr/bin/pbuilder-dist", line 456, in main
    sys.exit(subprocess.call(app.get_command(args)))
  File "/usr/bin/pbuilder-dist", line 286, in get_command
    if self.target_distro == UbuntuDistroInfo().devel():
  File "/usr/lib/python2.7/dist-packages/distro_info.py", line 92, in devel
    raise DistroDataOutdated()
distro_info.DistroDataOutdated: Distribution data outdated

Not a happy situation. I don't care if it's outdated. I just want to build my package.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Jonathan Marsden (jmarsden) wrote :

WORKAROUND:

In Precise, a quick and dirty fix is to edit the file /usr/bin/pbuilder-dist , commenting out lines 286 to 289 by prefixing each line with a #.

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 1068390] Re: pbuilder-dist dies when there is no development release

Yes, that's roughly what I did.

Revision history for this message
Benjamin Drung (bdrung) wrote :

Better workaround: Install distro-info-data from -proposed.

Revision history for this message
Stefano Rivera (stefanor) wrote :

Looks like we already dealt with this, closing.

Changed in ubuntu-dev-tools (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Stefano Rivera (stefanor) wrote :

(in 0.142)

Changed in ubuntu-dev-tools (Debian):
status: Unknown → Fix Released
Revision history for this message
Rob Austein (sra-l) wrote :

This bug just came back, it is not fixed. Trigger appears to be the date: as of about two hours ago it is 2014-04-17 UTC, which happens to be the last release date listed in /usr/share/distro-info/ubuntu.csv. So the distro_info library thinks there is no development release, and throws an exception when asked.

I think the correct fix for pbuilder-dist is just to catch the exception and conclude that perhaps if there is no development release, we're not trying to build for the development release, and just get on with the job.

Revision history for this message
Scott Kitterman (kitterman) wrote :

On Thursday, April 17, 2014 02:20:28 you wrote:
> This bug just came back, it is not fixed. Trigger appears to be the
> date: as of about two hours ago it is 2014-04-17 UTC, which happens to
> be the last release date listed in /usr/share/distro-info/ubuntu.csv.
> So the distro_info library thinks there is no development release, and
> throws an exception when asked.
>
> I think the correct fix for pbuilder-dist is just to catch the exception
> and conclude that perhaps if there is no development release, we're not
> trying to build for the development release, and just get on with the
> job.

Since this one is marked Fix Released, it'll work better if you file a new bug
suggesting that.

Revision history for this message
Andy Brody (abrody) wrote :

Well, exactly six months later this is baaaack!

Is https://bugs.launchpad.net/ubuntu/+source/ubuntu-dev-tools/+bug/1194687 the relevant bug now?

Revision history for this message
Benjamin Drung (bdrung) wrote :

The changelog for ubuntu-dev-tools 0.142 says:

  * pbuilder-dist, pull-debian-source, pull-lp-source, requestsync,
     reverse-depends, submittodebian, syncpackage:
     Handle outdated distro-info data. Fall back to sane defaults where
     possible. (Closes: #673957)

So, which version of ubuntu-dev-tools do you use?

Revision history for this message
Pavel (spvkgn) wrote :

Same here with 0.143 ubuntu-dev-tools

$ pbuilder-dist precise update
Traceback (most recent call last):
  File "/usr/bin/pbuilder-dist", line 474, in <module>
    main()
  File "/usr/bin/pbuilder-dist", line 468, in main
    sys.exit(subprocess.call(app.get_command(args)))
  File "/usr/bin/pbuilder-dist", line 295, in get_command
    Logger.warn(e)
  File "/usr/lib/python2.7/dist-packages/devscripts/logger.py", line 55, in warn
    message % args)
TypeError: unsupported operand type(s) for %: 'DistroDataOutdated' and 'tuple'

$ apt-cache policy ubuntu-dev-tools
ubuntu-dev-tools:
  Установлен: 0.143
  Кандидат: 0.143
  Таблица версий:
 *** 0.143 0
        100 /var/lib/dpkg/status
     0.141ubuntu0.1 0
        500 http://archive.ubuntu.com/ubuntu/ precise-updates/universe i386 Packages
     0.141 0
        500 http://archive.ubuntu.com/ubuntu/ precise/universe i386 Packages

Revision history for this message
Scott Kitterman (kitterman) wrote :

Works fine on 14.04 with 0.153

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.