mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
* massfile: fixed bug where to find example files.
This commit is contained in:
parent
0f64f93961
commit
0a00f91d9b
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -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.
|
||||
|
8
massfile
8
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, \
|
||||
|
Loading…
x
Reference in New Issue
Block a user