Public bug reported:
Binary package hint: python-apt
Steps to reproduce:
$ mkdir -p /tmp/apt-test/etc/apt
$ cp /etc/apt/sources.list /tmp/apt-test/etc/apt/.
- Run the following code in a python shell:
import apt
cache = apt.Cache(rootdir='/tmp/apt-test/')
cache.update()
cache.open(apt.progress.base.OpProgress())
for package in cache:
foo = package
- Inspect the foo.candidate.origins object and this is what you will get:
[<Origin component:'' archive:'' origin:'' label:'' site:'archive.ubuntu.com'
isTrusted:False>]
Expected results:
[<Origin component:'universe' archive:'maverick' origin:'Ubuntu' label:'Ubuntu'
site:'archive.ubuntu.com' isTrusted:True>]
** Affects: python-apt (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
Binary package hint: python-apt
Steps to reproduce:
$ mkdir -p /tmp/apt-test/etc/apt
$ cp /etc/apt/sources.list /tmp/apt-test/etc/apt/.
- - Run the following script:
+ - Run the following code in a python shell:
import apt
cache = apt.Cache(rootdir='/tmp/apt-test/')
cache.update()
- cache.open(apt.progress.base.OpProgress)
+ cache.open(apt.progress.base.OpProgress())
for package in cache:
- foo = package
+ foo = package
- Inspect the foo.candidate.origins object and this is what you will get:
[<Origin component:'' archive:'' origin:'' label:'' site:'archive.ubuntu.com'
isTrusted:False>]
** Description changed:
Binary package hint: python-apt
Steps to reproduce:
$ mkdir -p /tmp/apt-test/etc/apt
$ cp /etc/apt/sources.list /tmp/apt-test/etc/apt/.
- Run the following code in a python shell:
import apt
cache = apt.Cache(rootdir='/tmp/apt-test/')
cache.update()
cache.open(apt.progress.base.OpProgress())
for package in cache:
foo = package
- Inspect the foo.candidate.origins object and this is what you will get:
[<Origin component:'' archive:'' origin:'' label:'' site:'archive.ubuntu.com'
isTrusted:False>]
+
+ Expected results:
+ [<Origin component:'universe' archive:'maverick' origin:'Ubuntu'
label:'Ubuntu' site:'archive.ubuntu.com' isTrusted:True>]
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/704595
Title:
Python-apt shows emply origins object
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs