summaryrefslogtreecommitdiff
path: root/portato/backend/package.py
diff options
context:
space:
mode:
authornecoro <>2007-01-31 22:46:00 +0000
committernecoro <>2007-01-31 22:46:00 +0000
commit108cf5bd89ea15349769a628a38671797c6bcc12 (patch)
tree1ed200adcad02beefe877f5888a098b9d50ccbe1 /portato/backend/package.py
parent47fa732873512507322d8907dc30d1c8257e67a7 (diff)
downloadportato-108cf5bd89ea15349769a628a38671797c6bcc12.tar.gz
portato-108cf5bd89ea15349769a628a38671797c6bcc12.tar.bz2
portato-108cf5bd89ea15349769a628a38671797c6bcc12.zip
fixed some bugs pyChecker found
Diffstat (limited to 'portato/backend/package.py')
-rw-r--r--portato/backend/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/portato/backend/package.py b/portato/backend/package.py
index 436b5e1..d4eff19 100644
--- a/portato/backend/package.py
+++ b/portato/backend/package.py
@@ -203,7 +203,7 @@ class Package:
i_flags.append(f)
return i_flags
else:
- return self.get_new_flags()
+ return self.get_new_use_flags()
def set_use_flag (self, flag):
"""Set a use-flag.
@@ -377,6 +377,7 @@ class Package:
p = self.get_ebuild_path()
sp = p.split("/")
if len(sp):
+ import string
return string.join(sp[:-1],"/")
def get_env_var(self, var, tree = None):