interface to download source code tree
Bug #118788 reported by
Martin Pitt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-apt (Debian) |
Fix Released
|
Undecided
|
Unassigned | ||
python-apt (Ubuntu) |
Fix Released
|
Wishlist
|
Julian Andres Klode |
Bug Description
Binary package hint: python-apt
It would be handy to have a Pythonic interface for downloading the source of a package to a given directory, with an appropriate selection of versions. right now I use something like
try:
argv = ['apt-get', 'source', srcpackage]
if version:
try:
if subprocess.
except OSError:
finally:
Related branches
Changed in python-apt: | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
It would be very helpful if this could return the actual directory this was unpacked in. Without this, figuring out the actual source package name and version is pretty hard. E. g. 'apt-get source libgnome2-common' would create a directory 'libgnome-2.18.0'.