summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-05-21 20:29:51 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-05-21 20:29:51 +0200
commit3023e6997fbd591667398b992c490d237205c85b (patch)
treeab30cf7f0cbf79c9524a66aadba7ebf1aea877e2 /portato
parent9ecb704361e551d02ef0a9d4a88f217e59e48c8d (diff)
downloadportato-3023e6997fbd591667398b992c490d237205c85b.tar.gz
portato-3023e6997fbd591667398b992c490d237205c85b.tar.bz2
portato-3023e6997fbd591667398b992c490d237205c85b.zip
Ported to new find_packages API #2: withVersion --> with_version
Diffstat (limited to 'portato')
-rw-r--r--portato/backend/portage/system.py2
-rw-r--r--portato/gui/utils.py4
-rw-r--r--portato/gui/windows/main.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py
index 8aebb85..adb9799 100644
--- a/portato/backend/portage/system.py
+++ b/portato/backend/portage/system.py
@@ -337,7 +337,7 @@ class PortageSystem (SystemInterface):
return new_packages
def get_updated_packages (self):
- packages = self.get_new_packages(self.find_packages(set = "installed", withVersion = False))
+ packages = self.get_new_packages(self.find_packages(set = "installed", with_version = False))
packages = [x for x in packages if x is not None and not x.is_installed()]
return packages
diff --git a/portato/gui/utils.py b/portato/gui/utils.py
index 01a6b2f..7a3e8ee 100644
--- a/portato/gui/utils.py
+++ b/portato/gui/utils.py
@@ -165,8 +165,8 @@ class Database (object):
"""
# get the lists
- packages = system.find_packages(category, withVersion = False)
- installed = system.find_packages(category, set = "installed", withVersion = False)
+ packages = system.find_packages(category, with_version = False)
+ installed = system.find_packages(category, set = "installed", with_version = False)
# cycle through packages
for p in packages:
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index 787bb28..2c9eade 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -1428,7 +1428,7 @@ class MainWindow (Window):
if "/" not in text:
text = "/.*"+text # only look for package names
- packages = system.find_packages(text, withVersion = False)
+ packages = system.find_packages(text, with_version = False)
if packages == []:
nothing_found_dialog()