* massfile: fixed bug where to find example files.

This commit is contained in:
Daniel Holbach 2007-09-27 11:44:42 +02:00
parent 0f64f93961
commit 0a00f91d9b
2 changed files with 12 additions and 2 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
ubuntu-dev-tools (0.14) UNRELEASED; urgency=low
* massfile: fixed bug where to find example files.
-- Daniel Holbach <daniel.holbach@ubuntu.com> Thu, 27 Sep 2007 11:43:55 +0200
ubuntu-dev-tools (0.13) gutsy; urgency=low
* massfile: added script to file mass-bugs.

View File

@ -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, \