Merge lp:~al-maisan/bzr-builddeb/bd-merge-failure-no-source-uris into lp:~bzr-builddeb-hackers/bzr-builddeb/trunk-old

Proposed by Muharem Hrnjadovic
Status: Merged
Merged at revision: not available
Proposed branch: lp:~al-maisan/bzr-builddeb/bd-merge-failure-no-source-uris
Merge into: lp:~bzr-builddeb-hackers/bzr-builddeb/trunk-old
Diff against target: None lines
To merge this branch: bzr merge lp:~al-maisan/bzr-builddeb/bd-merge-failure-no-source-uris
Reviewer Review Type Date Requested Status
James Westby Approve
Review via email: mp+11622@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Muharem Hrnjadovic (al-maisan) wrote :

Hello,

this branch adds code that handles the case where the apt.sources file contains no source URIs (see bug #375897 for more detail). Please have a look and let me know what you think.

Thanks!

Revision history for this message
James Westby (james-w) wrote :

Looks good, thanks.

James

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'upstream.py'
--- upstream.py 2009-08-24 17:33:44 +0000
+++ upstream.py 2009-09-11 18:02:26 +0000
@@ -96,7 +96,14 @@
96 else:96 else:
97 apt_pkg = _apt_pkg97 apt_pkg = _apt_pkg
98 apt_pkg.init()98 apt_pkg.init()
99 sources = apt_pkg.GetPkgSrcRecords()99
100 # Handle the case where the apt.sources file contains no source
101 # URIs (LP:375897)
102 try:
103 sources = apt_pkg.GetPkgSrcRecords()
104 except SystemError:
105 raise PackageVersionNotPresent(package, upstream_version, self)
106
100 sources.Restart()107 sources.Restart()
101 info("Using apt to look for the upstream tarball.")108 info("Using apt to look for the upstream tarball.")
102 while sources.Lookup(package):109 while sources.Lookup(package):

Subscribers

People subscribed via source and target branches