From 0a00f91d9bf8908a43decac90c7bc77b19b828ec Mon Sep 17 00:00:00 2001 From: Daniel Holbach Date: Thu, 27 Sep 2007 11:44:42 +0200 Subject: [PATCH] * massfile: fixed bug where to find example files. --- debian/changelog | 6 ++++++ massfile | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 0c942fb..579db09 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +ubuntu-dev-tools (0.14) UNRELEASED; urgency=low + + * massfile: fixed bug where to find example files. + + -- Daniel Holbach Thu, 27 Sep 2007 11:43:55 +0200 + ubuntu-dev-tools (0.13) gutsy; urgency=low * massfile: added script to file mass-bugs. diff --git a/massfile b/massfile index 6617a4d..00d9237 100755 --- a/massfile +++ b/massfile @@ -10,8 +10,6 @@ import subprocess import launchpadbugs.connector as Connector -example_dir = "/usr/share/doc/ubuntu-dev-tools/examples" - def read_config(): instructions_file = open("instructions") instructions = email.message_from_file(instructions_file) @@ -43,6 +41,12 @@ def file_bug(): def check_configfiles(): result = True + bin_path = os.path.dirname(os.path.abspath(__file__)) + if bin_path == "/usr/bin": + example_dir = "/usr/share/doc/ubuntu-dev-tools/examples" + else: + example_dir = "%s/examples" % bin_path + if not os.path.exists("instructions"): os.system("cp %s/massfile.instructions instructions" % example_dir) print >> sys.stderr, \