From 0f91172e0fe921c01447c7b884b403a9b165ef96 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sun, 8 Jun 2008 10:18:00 +0100 Subject: [PATCH] Fixed warning message for unknown elements. --- release.py | 3 ++- support.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/release.py b/release.py index 9864b57..7009809 100644 --- a/release.py +++ b/release.py @@ -4,7 +4,7 @@ import os, sys, subprocess, shutil, tarfile, tempfile from zeroinstall import SafeException from zeroinstall.injector import reader, model -from logging import info +from logging import info, warn import support from scm import get_scm @@ -208,6 +208,7 @@ def do_release(local_iface, options): if url.startswith('http://TESTING/releases'): return True + print "Testing URL %s..." % url try: actual_size = int(support.get_size(url)) except Exception, ex: diff --git a/support.py b/support.py index a877243..0bc82fb 100644 --- a/support.py +++ b/support.py @@ -12,7 +12,7 @@ release_status_file = 'release-status' def check_call(*args, **kwargs): exitstatus = subprocess.call(*args, **kwargs) if exitstatus != 0: - raise SafeException("Command failed with exit code %d:\n%s" % (exitstatus, ' '.join(args[0]))) + raise SafeException("Command failed with exit code %d:\n%s" % (exitstatus, ' '.join(args))) def show_and_run(cmd, args): print "Executing: %s %s" % (cmd, ' '.join("[%s]" % x for x in args)) -- 2.11.4.GIT