summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2013-03-19 16:51:32 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2013-03-19 16:51:32 +0100
commita2d20deb3639b0d6eed6b4520c3c7fec8bbd3126 (patch)
tree752ce4ef5fdf5534efea6fb1c70372a412f6f7e3 /apt
parentecd633e68d664776f9454bbbed9c1ee61dd62b05 (diff)
downloadpython-apt-a2d20deb3639b0d6eed6b4520c3c7fec8bbd3126.tar.gz
* apt/package.py:
- export codename in apt.package.Origin as well (closes: #703401)
Diffstat (limited to 'apt')
-rw-r--r--apt/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt/package.py b/apt/package.py
index 29eec909..3d091ae2 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -137,6 +137,7 @@ class Origin(object):
component - The component (eg. main)
label - The Label, as set in the Release file
origin - The Origin, as set in the Release file
+ codename - The Codename, as set in the Release file
site - The hostname of the site.
trusted - Boolean value whether this is trustworthy.
"""
@@ -146,6 +147,7 @@ class Origin(object):
self.component = packagefile.component
self.label = packagefile.label
self.origin = packagefile.origin
+ self.codename = packagefile.codename
self.site = packagefile.site
self.not_automatic = packagefile.not_automatic
# check the trust