diff options
author | Necoro <> | 2008-01-14 10:31:51 +0000 |
---|---|---|
committer | Necoro <> | 2008-01-14 10:31:51 +0000 |
commit | 60e51e08dde38b982dc84923e3678555aeef21ba (patch) | |
tree | 6c5d4481df50f53fb932a31698a9fbcfdff5b72f /portato/backend/package.py | |
parent | 933b7e68f19d6107bff06b29fbbce7f364fba74a (diff) | |
download | portato-60e51e08dde38b982dc84923e3678555aeef21ba.tar.gz portato-60e51e08dde38b982dc84923e3678555aeef21ba.tar.bz2 portato-60e51e08dde38b982dc84923e3678555aeef21ba.zip |
r603@Devoty: necoro | 2008-01-14 11:30:26 +0100
Improved 'update world'; really support new use defaults
Diffstat (limited to 'portato/backend/package.py')
-rw-r--r-- | portato/backend/package.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/portato/backend/package.py b/portato/backend/package.py index 4d84e90..8df7dae 100644 --- a/portato/backend/package.py +++ b/portato/backend/package.py @@ -95,7 +95,7 @@ class Package (_Package): @return: list of flags @rtype: string[]""" - i_flags = self.get_global_settings("USE").split() + i_flags = self.get_global_settings("USE", installed = False).split() for f in self.get_new_use_flags(): if f[0] == '-': @@ -311,11 +311,13 @@ class Package (_Package): raise NotImplementedError - def get_global_settings(self, key): + def get_global_settings(self, key, installed = True): """Returns the value of a global setting, i.e. ARCH, USE, ROOT, DISTDIR etc. @param key: the setting to return @type key: string + @param installed: get the installed settings or the ebuild settings + @type installed: boolean @returns: the value of this setting @rtype: string""" |