From b59caea98038636b8a3154b33486a18349bed482 Mon Sep 17 00:00:00 2001 From: Jennifer Leech Date: Tue, 19 Aug 2008 23:21:06 +0000 Subject: - install.xml updated with versions of tarfiles which no longer contain debug lib files on linux and darwin. Files mistakenly added previously from automatically generated linux build dir (viewer-linux-i686) removed. Also some dll's mistakenly added to linux lib tarfiles removed. - file lists in assemblies/3rd_party_libs (used for updating lib tarfiles) updated as per above - new config files created for 'glib' library; glib files removed from gtk-atk-pango-glib filelist. glib can be decoupled from mono, when appropriate. - package.py help dialogue and error reporting updated for clarity. - install.py will now output list of files installed for a package with command-line option --- scripts/install.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'scripts') diff --git a/scripts/install.py b/scripts/install.py index dd8ffa8401..522fa6e9d9 100755 --- a/scripts/install.py +++ b/scripts/install.py @@ -308,6 +308,13 @@ class Installer(object): "Return a list of installed packages." return self._installed.keys() + def detail_installed(self, name): + "Return file list for specific installed package." + filelist = [] + for url in self._installed[name]._installed.keys(): + filelist.extend(self._installed[name].files_in(url)) + return filelist + def _update_field(self, description, field, value, multiline=False): """Given a block and a field name, add or update it. @param description a dict containing all the details of a description. @@ -970,6 +977,12 @@ Ignored if --add-installable or --add-installable-package is not specified.""") default=None, dest='detail_installable', help="Get detailed information on specified installable and exit.") + parser.add_option( + '--detail-installed', + type='string', + default=None, + dest='detail_installed', + help="Get list of files for specified installed installable and exit.") parser.add_option( '--uninstall', action='store_true', @@ -1012,6 +1025,17 @@ def main(): print "Installable '"+options.detail_installable+"' not found in", print "install file." return 0 + if options.detail_installed: + try: + detail = installer.detail_installed(options.detail_installed) + #print "Detail on installed",options.detail_installed+":" + for line in detail: + print line + except: + raise + print "Installable '"+options.detail_installed+"' not found in ", + print "install file." + return 0 if options.list_licenses: print "license list:", installer.list_licenses() return 0 -- cgit v1.2.3