summaryrefslogtreecommitdiff
path: root/portato/backend/package.py
diff options
context:
space:
mode:
authorNecoro <>2008-01-14 10:31:51 +0000
committerNecoro <>2008-01-14 10:31:51 +0000
commit60e51e08dde38b982dc84923e3678555aeef21ba (patch)
tree6c5d4481df50f53fb932a31698a9fbcfdff5b72f /portato/backend/package.py
parent933b7e68f19d6107bff06b29fbbce7f364fba74a (diff)
downloadportato-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.py6
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"""
llow=1'>Only import stuff if necessaryRené 'Necoro' Neumann1-8/+8 2009-08-25Release the threadQueue-Lock in syncv0.13René 'Necoro' Neumann1-0/+1 2009-08-25Updated portugese translationAlberto Federman Neto1-650/+687 2009-08-15Update spanish translationDaniel Halens1-245/+258 2009-08-15Use boolean flags instead of obscure C flags for ipc.MessageQueueRené 'Necoro' Neumann3-13/+15 2009-08-15TypoRené 'Necoro' Neumann1-1/+1 2009-08-15Enhanced the extensions.shRené 'Necoro' Neumann1-3/+8 2009-08-15Move eix-format to correct locationRené 'Necoro' Neumann1-0/+0