* massfile:

- fixed bug where to find example files,
  - made url get checked beforehand.
This commit is contained in:
Daniel Holbach 2007-09-27 11:49:05 +02:00
parent 0a00f91d9b
commit 20f58ebcb6
2 changed files with 10 additions and 7 deletions

4
debian/changelog vendored
View File

@ -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 <daniel.holbach@ubuntu.com> Thu, 27 Sep 2007 11:43:55 +0200

View File

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