summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Client/Debian.py2
-rw-r--r--src/lib/Client/Solaris.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Client/Debian.py b/src/lib/Client/Debian.py
index 77971a6ca..1785b5440 100644
--- a/src/lib/Client/Debian.py
+++ b/src/lib/Client/Debian.py
@@ -32,6 +32,8 @@ class Debian(Toolset):
self.installed = {}
self.pkgwork = {'add':[], 'update':[], 'remove':[]}
self.extra_services = []
+ for pkg in [cpkg for cpkg in self.cfg.finall(".//Package") if not cpkg.attrib.has_key('type')]:
+ pkg.set('type', 'deb')
self.Refresh()
def Refresh(self):
diff --git a/src/lib/Client/Solaris.py b/src/lib/Client/Solaris.py
index 028889a01..72ca7a8b5 100644
--- a/src/lib/Client/Solaris.py
+++ b/src/lib/Client/Solaris.py
@@ -23,7 +23,9 @@ class Solaris(Toolset):
except OSError:
pass
self.Refresh()
-
+ for pkg in [cpkg for cpkg in self.cfg.findall(".//Package") if not cpkg.attrib.has_key('type')]:
+ pkg.set('type', 'sysv')
+
def Refresh(self):
'''Refresh memory hashes of packages'''
self.installed = {}