mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-10 00:11:29 +00:00
* massfile:
- fixed bug where to find example files, - made url get checked beforehand.
This commit is contained in:
parent
0a00f91d9b
commit
20f58ebcb6
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -1,6 +1,8 @@
|
|||||||
ubuntu-dev-tools (0.14) UNRELEASED; urgency=low
|
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
|
-- Daniel Holbach <daniel.holbach@ubuntu.com> Thu, 27 Sep 2007 11:43:55 +0200
|
||||||
|
|
||||||
|
13
massfile
13
massfile
@ -43,9 +43,9 @@ def check_configfiles():
|
|||||||
|
|
||||||
bin_path = os.path.dirname(os.path.abspath(__file__))
|
bin_path = os.path.dirname(os.path.abspath(__file__))
|
||||||
if bin_path == "/usr/bin":
|
if bin_path == "/usr/bin":
|
||||||
example_dir = "/usr/share/doc/ubuntu-dev-tools/examples"
|
example_dir = "/usr/share/doc/ubuntu-dev-tools/examples"
|
||||||
else:
|
else:
|
||||||
example_dir = "%s/examples" % bin_path
|
example_dir = "%s/examples" % bin_path
|
||||||
|
|
||||||
if not os.path.exists("instructions"):
|
if not os.path.exists("instructions"):
|
||||||
os.system("cp %s/massfile.instructions instructions" % example_dir)
|
os.system("cp %s/massfile.instructions instructions" % example_dir)
|
||||||
@ -87,10 +87,11 @@ def file_bug(config):
|
|||||||
def read_buglist(url):
|
def read_buglist(url):
|
||||||
BugList = Connector.ConnectBugList()
|
BugList = Connector.ConnectBugList()
|
||||||
packages = set()
|
packages = set()
|
||||||
|
|
||||||
buglist = BugList(url)
|
if url:
|
||||||
for bug in buglist.bugs:
|
buglist = BugList(url)
|
||||||
packages.add(bug.sourcepackage)
|
for bug in buglist.bugs:
|
||||||
|
packages.add(bug.sourcepackage)
|
||||||
|
|
||||||
return packages
|
return packages
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user