From 1544a930f0e62709c88152051b4a793f61a71f64 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 17 Nov 2008 00:34:16 +0000 Subject: document rpm and exe formats in example package config git-svn-id: file:///home/or/svnrepo/updater/trunk@17303 55e972cd-5a19-0410-ae62-a4d7a52db4cd --- lib/thandy/formats.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/thandy') diff --git a/lib/thandy/formats.py b/lib/thandy/formats.py index ccf3517..ff65173 100644 --- a/lib/thandy/formats.py +++ b/lib/thandy/formats.py @@ -631,9 +631,13 @@ def makePackageObj(config_fname, package_fname): 'longdesc' : longDescs } - if format == 'rpm' and r.get('rpm_version'): + if format == 'rpm': + if not r.get('rpm_version'): + raise Thandy.FormatException("missing rpm_version value") extra['rpm_version'] = r['rpm_version'] - elif format == 'exe' and r.get('exe_args') != None: + elif format == 'exe': + if not r.get('exe_args'): + raise Thandy.FormatException("missing exe_args value") extra['exe_args'] = r['exe_args'] PACKAGE_SCHEMA.checkMatch(result) -- cgit v1.2.3