pull-{lp,debian}-source not getting source for binary because DDE is dead
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | ubuntu-dev-tools (Debian) |
New
|
Unknown
|
||
| | ubuntu-dev-tools (Ubuntu) |
High
|
Dan Streetman | ||
Bug Description
Errors like the following are happening because Debian's DDE [1] is dead [2]:
logan@logan-
pull-debian-source: Error: Unable to retrieve package information from DDE: http://
pull-debian-source: Error: Unable to find d-rats in Debian suite "sid".
Maybe someone would be willing to host/maintain a new instance of DDE? Or is there another way to programmatically grab the Debian/Ubuntu source package name from the binary package name?
[1] https:/
[2] https:/
Related bugs:
* bug 1508948: pull-debian-source fails use of rmadison on wily
Related branches
- Dan Streetman: Disapprove on 2017-05-01
- Mattia Rizzolo: Needs Information on 2017-04-30
- Iain Lane: Needs Fixing on 2017-03-20
- Diff: 0 lines
- Ubuntu Development Team: Pending requested 2017-04-20
-
Diff: 3133 lines (+1608/-760)36 files modifieddebian/control (+7/-1)
dev/null (+0/-79)
doc/pull-debian-ddebs.1 (+1/-0)
doc/pull-debian-debs.1 (+1/-0)
doc/pull-debian-source.1 (+1/-0)
doc/pull-debian-udebs.1 (+1/-0)
doc/pull-lp-ddebs.1 (+1/-0)
doc/pull-lp-debs.1 (+1/-0)
doc/pull-lp-source.1 (+1/-0)
doc/pull-lp-udebs.1 (+1/-0)
doc/pull-pkg.1 (+134/-0)
doc/pull-uca-ddebs.1 (+1/-0)
doc/pull-uca-debs.1 (+1/-0)
doc/pull-uca-source.1 (+1/-0)
doc/pull-uca-udebs.1 (+1/-0)
pull-debian-ddebs (+16/-0)
pull-debian-debs (+16/-0)
pull-debian-source (+6/-133)
pull-debian-udebs (+16/-0)
pull-lp-ddebs (+16/-0)
pull-lp-debs (+16/-0)
pull-lp-source (+6/-139)
pull-lp-udebs (+16/-0)
pull-pkg (+33/-0)
pull-uca-ddebs (+16/-0)
pull-uca-debs (+16/-0)
pull-uca-source (+6/-147)
pull-uca-udebs (+16/-0)
setup.py (+10/-0)
ubuntutools/archive.py (+690/-190)
ubuntutools/config.py (+2/-0)
ubuntutools/lp/libsupport.py (+24/-0)
ubuntutools/lp/lpapicache.py (+240/-44)
ubuntutools/pullpkg.py (+281/-0)
ubuntutools/requestsync/mail.py (+13/-24)
ubuntutools/test/test_archive.py (+0/-3)
| summary: |
- pull-debian-source not getting versions because DDE is dead + pull-debian-source not getting source for binary because DDE is dead |
| description: | updated |
| summary: |
- pull-debian-source not getting source for binary because DDE is dead + pull-{lp,debian}-source not getting source for binary because DDE is + dead |
| description: | updated |
| Logan Rosen (logan) wrote : | #1 |
| Colin Watson (cjwatson) wrote : | #2 |
You can get it from LP following a recent API extension. Something like this:
try:
except PackageNotFound
spph = bpph.build.
if spph is not None:
I'll try to finish off my branch to convert to this shortly; I hadn't realised it was going to be urgent.
| Iain Lane (laney) wrote : | #3 |
Any news or should someone else pick this up?
| Changed in ubuntu-dev-tools (Ubuntu): | |
| status: | New → Triaged |
| importance: | Undecided → High |
| Scott Moser (smoser) wrote : | #4 |
in wily, pull-lp-source works for me, but a simple 'pull-debian-source hello' would fail.
The change in behavior from the working vivid for my specific use case is that rmadison has changed and is hitting a different server.
on wily:
$ rmadison -u debian -s sid -a source hello
hello | 2.10-1 | unstable | source
on trusty (and vivid)
$ rmadison -u debian -s sid -a source hello
hello | 2.10-1 | sid | source
The easiest fix for me to make 'pull-debian-source hello' work again was this:
=== modified file 'ubuntutools/
--- ubuntutools/
+++ ubuntutools/
@@ -604,6 +604,8 @@
def rmadison(url, package, suite=None, arch=None):
"Call rmadison and parse the result"
cmd = ['rmadison', '-u', url]
+ if suite == "sid":
+ suite = "unstable"
if suite:
cmd += ['-s', suite]
if arch:
That fixes my itch at least.
| description: | updated |
| Hans Joachim Desserud (hjd) wrote : | #5 |
Now that bug 1508948 is fixed, pull-debian-source seems to be working again on Ubuntu Xenial. As said, that adresses the rmadison failure, so I don't know whether this bug should be left open or what happens to it?
| Adam Conrad (adconrad) wrote : | #6 |
This bug is still relevant for binary->source mapping.
| Dan Streetman (ddstreet) wrote : | #7 |
debdiff containing patch to zesty pull-lp-source. This applies to T/X/Y pull-lp-source also.
The attachment "lp1453330-
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]
| tags: | added: patch |
| Changed in ubuntu-dev-tools (Debian): | |
| status: | Unknown → New |
| Khurshid Alam (khurshid-alam) wrote : | #9 |
Please fix it for zesty. It is preventing users from submitting patches for zesty.
| Dan Streetman (ddstreet) wrote : | #10 |
| Khurshid Alam (khurshid-alam) wrote : | #11 |
Is this going to land for zesty or not?
| Logan Rosen (logan) wrote : | #12 |
Dan, is that branch working? If so, can you please propose it for merging?
| Dan Streetman (ddstreet) wrote : | #13 |
Merge proposal created:
https:/
| Dan Streetman (ddstreet) wrote : | #14 |
Dmitry, as you're following this bug and you have devel access to merge it, can you review/merge the change?
| tags: | added: sts-sponsor |
| Dmitry Shachnev (mitya57) wrote : | #15 |
> Dmitry, as you're following this bug and you have devel access to merge it, can you review/merge the change?
Sorry, I do not know the code much, so I would prefer someone else to review it. There are some other people with rights to merge subscribed here :)
| tags: | removed: sts-sponsor |
| Dan Streetman (ddstreet) wrote : | #16 |
Iain, you created pull-lp-source, can you review this merge request?
| Iain Lane (laney) wrote : | #17 |
Ok, but you should look at the thing that I created and compare it to today's pull-lp-source. :)
| Khurshid Alam (khurshid-alam) wrote : | #18 |
I can confirm: the patch by Dan is woking!
| Michael Terry (mterry) wrote : | #19 |
The linked MP is marked as merged, but I don't think it is, looking at trunk. Dan, can you get your MP sorted and reviewable, and then subscribe sponsors again?
| Dan Streetman (ddstreet) wrote : | #20 |
Yep, I just changed it to work-in-progress, until i finish updating it so pull-debian-* works also.
| Dan Streetman (ddstreet) wrote : | #21 |
After quite a bit of major updating, I have some test pkgs built here:
https:/
it moves pull-lp-source to 'pull-pkg'; that is able to pull from debian, ubuntu, or uca, and it can pull source, binaries, ddebs, or di files. It can also simply list all a package's files.
There are small bash scripts to help calling pull-pkg:
pull-(lp|
can anyone interested in this test out the updated scripts from the test package please? I'd like input before updating the merge request.
My changes are all in my git repo in the branch 'pull-lp':
https:/
| Changed in ubuntu-dev-tools (Ubuntu): | |
| assignee: | nobody → Dan Streetman (ddstreet) |
| Dan Streetman (ddstreet) wrote : | #22 |
Ok, I updated my merge request to a git-based merge request:
https:/
also, I consolidated the script naming; so it's now:
pull-lp-source
pull-lp-debs
pull-lp-ddebs
pull-lp-udebs
which I think is more obvious, as to what you want to pull (instead of pull-lp-binaries and pull-lp-di).
And the renamed 'main' script is:
pull-pkg
laney, mterry, any chance you could review the patches for possible merging? I know it's quite a lot of code, but it does add a lot of useful functionality, I think.
| Dan Streetman (ddstreet) wrote : | #23 |
Also, I have pkgs built for xenial/
https:/
| Dan Streetman (ddstreet) wrote : | #24 |
After quite a bit of patch editing and git rebasing of my working repo, I've re-opened the merge request. Any coredevs who are interested please review the patches if you have time:
https:/
| Dan Streetman (ddstreet) wrote : | #25 |
Sponsors, @mterry, @laney, with 17.10 release behind us, does anyone have time to review this merge request?
| Dan Streetman (ddstreet) wrote : | #26 |
@mapreri you've uploaded several of the most recent ubuntu-dev-tools changes, can you review this merge request?
| Mattia Rizzolo (mapreri) wrote : | #27 |
Most probably I can, yes. But it's not a quick thing, I need to find some appropriate time to review.
BTW, even after merging some thing I'd prefer if you could stick around and deal with upcoming bugs in pull-pkg in the next months.
| Dan Streetman (ddstreet) wrote : | #28 |
> But it's not a quick thing, I need to find some appropriate time to review.
absolutely, I'm hoping it can get merged by b release next year, but it's obviously not critical.
> BTW, even after merging some thing I'd prefer if you could stick around and deal with
> upcoming bugs in pull-pkg in the next months.
yes of course, I'm not going anywhere.
thanks!
| Dan Streetman (ddstreet) wrote : | #29 |
@mapreri, just checking if you have had any time for any review of this yet.


An alternative is to query the UDD public mirror [1] directly using Psycopg, but I'm not sure if this is ideal (it also would add another dependency/ recommendation to ubuntu-dev-tools). Thoughts?
[1] http:// public- udd-mirror. xvm.mit. edu/