aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorCorentin Chary <corentin.chary@gmail.com>2012-08-03 21:50:54 +0200
committerCorentin Chary <corentin.chary@gmail.com>2012-08-03 21:50:54 +0200
commit8d912379886e00815aeb7ea1aed6af8f4bb62fbc (patch)
treedb80a5ddd84cf1e4dbf5bf79cc450478e6fd30de /bin
parenteuscan: hopefully better CPAN gentoo version mangling (diff)
downloadeuscan-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-xbin/euscan7
-rwxr-xr-xbin/euscan_patch_metadata3
2 files changed, 8 insertions, 2 deletions
diff --git a/bin/euscan b/bin/euscan
index 70ced79..1149839 100755
--- a/bin/euscan
+++ b/bin/euscan
@@ -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)