[elbe-devel] [PATCH 1/5] aptpkgutils: add source_pkg attribute
Torben Hohn
torben.hohn at linutronix.de
Mon Jul 8 16:38:12 CEST 2019
prepare for adding source_pkg to changelogsxml
the source_pkg attribute is not initialised by any constructor.
check_update will be able to set it, though.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/aptpkgutils.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/elbepack/aptpkgutils.py b/elbepack/aptpkgutils.py
index 9c8b37ce9..8cfbd012e 100644
--- a/elbepack/aptpkgutils.py
+++ b/elbepack/aptpkgutils.py
@@ -76,13 +76,14 @@ class PackageBase(object):
# pylint: disable=too-many-instance-attributes
- def __init__(self, name, installed_version,
+ def __init__(self, name, src_name, installed_version,
candidate_version, installed_md5, candidate_md5,
state, is_auto_installed, origin, architecture):
# pylint: disable=too-many-arguments
self.name = name
+ self.src_name = src_name
self.installed_version = installed_version
self.candidate_version = candidate_version
self.installed_md5 = installed_md5
@@ -127,7 +128,7 @@ class APTPackage(PackageBase):
arch = None
self.installed_deb = None
- PackageBase.__init__(self, pkg.name, iver,
+ PackageBase.__init__(self, pkg.name, None, iver,
cver, imd5, cmd5,
pkgstate(pkg), pkg.is_auto_installed,
origin, arch)
@@ -135,7 +136,7 @@ class APTPackage(PackageBase):
class XMLPackage(PackageBase):
def __init__(self, node, arch):
- PackageBase.__init__(self, node.et.text, node.et.get('version'),
+ PackageBase.__init__(self, node.et.text, None, node.et.get('version'),
None, node.et.get('md5'), None,
INSTALLED, node.et.get('auto') == 'true',
None, arch)
--
2.11.0
More information about the elbe-devel
mailing list