diff options
author | Corentin Chary <corentin.chary@gmail.com> | 2012-08-03 21:50:54 +0200 |
---|---|---|
committer | Corentin Chary <corentin.chary@gmail.com> | 2012-08-03 21:50:54 +0200 |
commit | 8d912379886e00815aeb7ea1aed6af8f4bb62fbc (patch) | |
tree | db80a5ddd84cf1e4dbf5bf79cc450478e6fd30de /bin | |
parent | euscan: hopefully better CPAN gentoo version mangling (diff) | |
download | euscan-8d912379886e00815aeb7ea1aed6af8f4bb62fbc.tar.gz euscan-8d912379886e00815aeb7ea1aed6af8f4bb62fbc.tar.bz2 euscan-8d912379886e00815aeb7ea1aed6af8f4bb62fbc.zip |
euscan/handlers: rework handlers, better remote-id + watch support
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/euscan | 7 | ||||
-rwxr-xr-x | bin/euscan_patch_metadata | 3 |
2 files changed, 8 insertions, 2 deletions
@@ -298,11 +298,16 @@ def main(): exit_helper(1) except Exception as err: + import traceback + print ('-'*60) + traceback.print_exc(file=sys.stderr) + print ('-'*60) + output.eerror('%s: %s' % (query, str(err))) exit_helper(1) if not ret and not CONFIG['quiet']: - output.ewarn( + output.einfo( "Didn't find any new version, check package's homepage " + "for more informations" ) diff --git a/bin/euscan_patch_metadata b/bin/euscan_patch_metadata index 2f1a834..612d9fe 100755 --- a/bin/euscan_patch_metadata +++ b/bin/euscan_patch_metadata @@ -176,8 +176,9 @@ def patch_metadata(package, watch_data, diff=False): valid = ("uversionmangle", "versionmangle", "downloadurlmangle") cleaned_opts = [] for opt in opts.split(","): - opt_name, opt_value = opt.split("=") + opt_name, opt_value = opt.split("=", 1) if opt_name in valid: + if opt_name == "uversionmangle": opt_name = "versionmangle" cleaned_opts.append('%s="%s"' % (opt_name, opt_value)) opts = " ".join(cleaned_opts) |