From 20f58ebcb6aefc1104fe33e2e99a43af2af3e611 Mon Sep 17 00:00:00 2001 From: Daniel Holbach Date: Thu, 27 Sep 2007 11:49:05 +0200 Subject: [PATCH] * massfile: - fixed bug where to find example files, - made url get checked beforehand. --- debian/changelog | 4 +++- massfile | 13 +++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index 579db09..c00f996 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,8 @@ ubuntu-dev-tools (0.14) UNRELEASED; urgency=low - * massfile: fixed bug where to find example files. + * massfile: + - fixed bug where to find example files, + - made url get checked beforehand. -- Daniel Holbach Thu, 27 Sep 2007 11:43:55 +0200 diff --git a/massfile b/massfile index 00d9237..ad3946f 100755 --- a/massfile +++ b/massfile @@ -43,9 +43,9 @@ def check_configfiles(): bin_path = os.path.dirname(os.path.abspath(__file__)) if bin_path == "/usr/bin": - example_dir = "/usr/share/doc/ubuntu-dev-tools/examples" + example_dir = "/usr/share/doc/ubuntu-dev-tools/examples" else: - example_dir = "%s/examples" % bin_path + example_dir = "%s/examples" % bin_path if not os.path.exists("instructions"): os.system("cp %s/massfile.instructions instructions" % example_dir) @@ -87,10 +87,11 @@ def file_bug(config): def read_buglist(url): BugList = Connector.ConnectBugList() packages = set() - - buglist = BugList(url) - for bug in buglist.bugs: - packages.add(bug.sourcepackage) + + if url: + buglist = BugList(url) + for bug in buglist.bugs: + packages.add(bug.sourcepackage) return packages