diff options
author | Tomas Touceda <chiiph@gentoo.org> | 2011-06-22 09:13:59 -0300 |
---|---|---|
committer | Tomas Touceda <chiiph@gentoo.org> | 2011-06-22 09:13:59 -0300 |
commit | 54665d3d4871ec3c23bb69d699f7bf6a6079f419 (patch) | |
tree | 7e0b137fe22540916fb3cea21be9264d5f726f2d /lib/thandy/packagesys/PackageSystem.py | |
parent | 5974512b79234882c59eab75669440628a6a8142 (diff) |
Creates basic structure to start the thp checker
Diffstat (limited to 'lib/thandy/packagesys/PackageSystem.py')
-rw-r--r-- | lib/thandy/packagesys/PackageSystem.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/thandy/packagesys/PackageSystem.py b/lib/thandy/packagesys/PackageSystem.py index 41d75e5..6a8ab60 100644 --- a/lib/thandy/packagesys/PackageSystem.py +++ b/lib/thandy/packagesys/PackageSystem.py @@ -51,6 +51,9 @@ def getChecker(relPath, extra, defaultFormat, package): import thandy.packagesys.PackageDB return thandy.packagesys.PackageDB.DBChecker( package['name'], package['version']) + elif defaultFormat == 'thp': + # TODO: create checker here! + pass else: return None elif checkType == 'rpm': @@ -66,6 +69,10 @@ def getChecker(relPath, extra, defaultFormat, package): import thandy.packagesys.ExePackages k,v=extra['registry_ent'] return thandy.packagesys.ExePackages.RegistryChecker(k,v) + elif checkType == 'thp': + import thandy.packagesys.ThpPackages + return thandy.packagesys.ThpPackages.ThpChecker( + extra['thp_name'], extra['thp_version']) else: return None |