Changeset 251
- Timestamp:
- 25-05-07 15:47:47 (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
moap/util/deps.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r250 r251 1 2007-05-25 Thomas Vander Stichele <thomas at apestaart dot org> 2 3 * moap/util/deps.py (getTicketURL, handleMissingDependency): 4 Make it easier to file a bug on a missing dependency. 5 1 6 2007-05-25 Thomas Vander Stichele <thomas at apestaart dot org> 2 7 -
trunk/moap/util/deps.py
r250 r251 5 5 # missing dependency 6 6 7 import os 8 import sys 9 import urllib 10 7 11 from moap.util import distro 8 9 import sys10 12 11 13 class Dependency: … … 119 121 raise 120 122 123 def getTicketURL(summary): 124 reporter = os.environ.get('EMAIL_ADDRESS', None) 125 get = "summary=%s" % urllib.quote(summary) 126 if reporter: 127 get += "&reporter=%s" % urllib.quote(reporter) 128 return 'https://thomas.apestaart.org/moap/trac/newticket?' + get 129 121 130 def handleMissingDependency(dep): 122 131 if dep.homepage: … … 129 138 sys.stderr.write(howto) 130 139 else: 131 sys.stderr.write( 132 "On %s, MOAP does not know how to install %s.\n" 133 "Please file a bug so we can add this dependency.\n" % ( 134 d.description, dep.module)) 140 url = getTicketURL('DEP: %s, %s' % (dep.module, d.description)) 141 sys.stderr.write("""On %s, MOAP does not know how to install %s. 142 Please file a bug at: 143 %s 144 with instructions on how to install the dependency so we can add it. 145 """ % (d.description, dep.module, url)) 135 146 else: 147 url = getTicketURL('DISTRO: Unknown') 136 148 sys.stderr.write("""MOAP does not know your distribution. 137 Please file a bug so we can add your distribution. 138 """) 149 Please file a bug at: 150 %s 151 with instructions on how to recognize your distribution so we can add it. 152 """ % url) 139 153 140 154 sys.stderr.write('\n')
Note: See TracChangeset
for help on using the changeset viewer.
