[jhbuild/desrt/master: 35/35] packagedb: remove unused parameter
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild/desrt/master: 35/35] packagedb: remove unused parameter
- Date: Sun, 4 Jan 2015 04:32:31 +0000 (UTC)
commit 5b910fe1f3974fea019b1cd3b69953974624b712
Author: Ryan Lortie <desrt desrt ca>
Date: Sat Jan 3 23:17:11 2015 -0500
packagedb: remove unused parameter
https://bugzilla.gnome.org/show_bug.cgi?id=742298
jhbuild/utils/packagedb.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/jhbuild/utils/packagedb.py b/jhbuild/utils/packagedb.py
index 9c2d95d..7744134 100644
--- a/jhbuild/utils/packagedb.py
+++ b/jhbuild/utils/packagedb.py
@@ -101,7 +101,7 @@ class PackageEntry:
def remove(self):
os.unlink(os.path.join(self.manifests_dir, self.package))
- def to_xml(self, doc):
+ def to_xml(self):
entry_node = ET.Element('entry', {'package': self.package,
'version': self.version})
if 'installed-date' in self.metadata:
@@ -167,7 +167,7 @@ class PackageDB:
pkgdb_node = ET.Element('packagedb')
doc = ET.ElementTree(pkgdb_node)
for package,entry in self._entries.iteritems():
- node = entry.to_xml(doc)
+ node = entry.to_xml()
pkgdb_node.append(node)
writer = fileutils.SafeWriter(self.dbfile)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]