diff options
author | Tomás Touceda <chiiph@torproject.org> | 2012-01-04 13:14:08 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@torproject.org> | 2012-01-04 13:14:08 -0300 |
commit | 62c2dd6e24f6ac0523fe7e1c16e1475b1988d61f (patch) | |
tree | 3e3e0c000c9efb390b659fb0ecc8d77eeabdf960 /lib/thandy/formats.py | |
parent | c01e9c0bcef743442c8e44641b8cb0f51585eb6e (diff) |
Add a thp_dest parameter to install package in custom locations
Diffstat (limited to 'lib/thandy/formats.py')
-rw-r--r-- | lib/thandy/formats.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/thandy/formats.py b/lib/thandy/formats.py index 0a73ff4..6253678 100644 --- a/lib/thandy/formats.py +++ b/lib/thandy/formats.py @@ -746,7 +746,7 @@ def makePackageObj(config_fname, package_fname): 'exe_registry_ent', 'db_key', 'db_val', 'command_install', 'command_remove', - 'thp_name', 'thp_version', + 'thp_name', 'thp_version', 'thp_dest' ], preload) f = open(package_fname, 'rb') @@ -790,6 +790,10 @@ def makePackageObj(config_fname, package_fname): if not r.get('thp_version'): raise thandy.FormatException("missing thp_version value") extra['thp_version'] = r['thp_version'] + if not r.get('thp_dest'): + extra['thp_dest'] = "" + else: + extra['thp_dest'] = r['thp_dest'] if r.get('command_install'): extra['install_type'] = 'command' |