From 2d64f2bfe77eb1ff11ecbc5f21bb39c341252542 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Fri, 5 May 2006 17:49:38 +0000 Subject: contrib/qa/ipkg-diff/ipkg.py: -do not have an argument for the getter methods -return the file list verbosely --- contrib/qa/ipkg-diff/ipkg.py | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) (limited to 'contrib') diff --git a/contrib/qa/ipkg-diff/ipkg.py b/contrib/qa/ipkg-diff/ipkg.py index 02aab229ee..4ef28bf7cd 100644 --- a/contrib/qa/ipkg-diff/ipkg.py +++ b/contrib/qa/ipkg-diff/ipkg.py @@ -120,6 +120,7 @@ class Package: self.section = None self.filename_header = None self.file_list = [] + self.file_all_list = [] self.md5 = None self.size = None self.installed_size = None @@ -188,6 +189,19 @@ class Package: self.file_list.append(string.rstrip(line)) data.close() + # bigger listing with all permissions + if self.isdeb: + data = os.popen("ar p "+fn+" data.tar.gz | tar tvfz -","r") + else: + data = os.popen("tar xfzO "+fn+" '*data.tar.gz' | tar tvfz -","r") + while 1: + line = data.readline() + if not line: break + self.file_all_list.append(string.rstrip(line)) + data.close() + + + self.scratch_dir = None self.file_dir = None self.meta_dir = None @@ -269,42 +283,48 @@ class Package: def set_depends(self, depends): self.depends = depends - def get_depends(self, depends): + def get_depends(self): return self.depends def set_provides(self, provides): self.provides = provides - def get_provides(self, provides): + def get_provides(self): return self.provides def set_replaces(self, replaces): self.replaces = replaces - def get_replaces(self, replaces): + def get_replaces(self): return self.replaces def set_conflicts(self, conflicts): self.conflicts = conflicts - def get_conflicts(self, conflicts): + def get_conflicts(self): return self.conflicts def set_suggests(self, suggests): self.suggests = suggests - def get_suggests(self, suggests): + def get_suggests(self): return self.suggests def set_section(self, section): self.section = section - def get_section(self, section): + def get_section(self): return self.section def get_file_list(self): return self.file_list + def get_file_all_list(self): + return self.file_all_list + + def get_md5(self): + return self.md5 + def write_package(self, dirname): buf = self.render_control() file = open("%s/control" % self.meta_dir, 'w') -- cgit v1.2.3