Mercurial > gub
changeset 973:4ebffb6b2896
remove .lst.gz support from xpm.
author | hanwen <hanwen@xs4all.nl> |
---|---|
date | Fri, 13 Jan 2006 00:16:10 +0100 |
parents | 8e79cf7491d4 |
children | 6e14a25261cf |
files | specs/xpm.py |
diffstat | 1 files changed, 1 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/specs/xpm.py Thu Jan 12 22:13:32 2006 +0100 +++ b/specs/xpm.py Fri Jan 13 00:16:10 2006 +0100 @@ -80,22 +80,9 @@ def installed_files (self, package): return self._package_file_db[package.name ()].split ('\n') - def file_list_name (self, package): - return '%s/%s.lst.gz' % (self.config, package.name ()) - def is_installed (self, package): return self._package_file_db.has_key (package.name()) - def _read_file_list (self, package): - return map (string.strip, - gzip.open (self.file_list_name (package)).readlines ()) - - def _write_file_list (self, package, lst): - f = gzip.open (self.file_list_name (package), 'w') - for i in lst: - f.write ('%s\n' % i) - f.close () - def _build_package (self, package): if self.is_installed (package): return @@ -198,8 +185,6 @@ if f and f[-1] != '/': self._file_package_db[f] = name - self._write_file_list (package, lst) - def _register_package (self, package): if package.verbose: self.os_interface.log_command ('registering package: %s\n' @@ -209,7 +194,6 @@ def _uninstall_package (self, package): self.os_interface.log_command ('uninstalling package: %s\n' % `package`) - listfile = self.file_list_name (package) lst = self.installed_files (package) name = package.name() @@ -315,7 +299,7 @@ if ds != []]) for ds in deps.values (): ds[:] = [d for d in ds if d not in rm] - + return sorted # NAME_ shortcuts