xdeb tries to download package from wrong repository
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xdeb (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
If there is an updated version of a package in a PPA (in this case flex:)
apt-cache policy flex-doc
flex-doc:
Installed: (none)
Candidate: 2.5.35-10ubuntu3
Version table:
2.
500 http://
2.
500 http://
500 http://
xdeb, when trying to do native imports, notices that the new package exists, but due to it's simple-minded wget native-import implementation, tries to download it from the wrong URL:
===== Importing flex_2.
Considering binary flex
Considering binary flex-doc
wget -N http://
--2011-09-11 15:36:20-- http://
Resolving ports.ubuntu.com... 91.189.92.175
Connecting to ports.ubuntu.
HTTP request sent, awaiting response... 404 Not Found
2011-09-11 15:36:20 ERROR 404: Not Found.
Traceback (most recent call last):
File "/usr/bin/xdeb", line 946, in <module>
main()
File "/usr/bin/xdeb", line 930, in main
native_
File "/usr/bin/xdeb", line 547, in native_import
cwd=
File "/usr/lib/
Using apt-get download instead of wget fixes this problem:
===== Importing flex_2.
Considering binary flex
apt-get -oAPT::
apt-get -oAPT::
Considering binary flex-doc
apt-get -oAPT::
apt-get -oAPT::
apt-get -oAPT::
apt-ftparchive generate apt.conf
.: New 3161 kB 2364 files 2070 MB 0s
Packages done, Starting contents.
Done. 2070 MB in 2364 archives. Took 0s
Changed in xdeb (Ubuntu): | |
status: | New → Fix Committed |
Fix available in this branch: https:/ /code.launchpad .net/~wookey/ xdeb/xdeb- apt-download
This fix also solves a number of other problems: import_ source per-arch config option) /bugs.launchpad .net/ubuntu/ +source/ xdeb/+bug/ 753968 (needs testing)
1) removes the difference between Debian and Ubuntu versions (the native_
2) Allows all uses of apt config/preferences when downloading binaries (pinning, multiple repos, default-release etc)
3) Probably fixes mismatched binary/source download issue: https:/