Changeset 197
- Timestamp:
- 17-04-07 23:38:18 (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
moap/command/doap.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r194 r197 1 2007-04-17 Thomas Vander Stichele <thomas at apestaart dot org> 2 3 * moap/command/doap.py (Freshmeat.addOptions, Freshmeat.handleOptions, 4 Freshmeat.do): 5 FEATURE: added moap doap freshmeat -b to force a branch name, 6 as Freshmeat uses Default as the default name. 7 1 8 === release 0.4.3 === 2 9 -
trunk/moap/command/doap.py
r193 r197 37 37 """ 38 38 39 def addOptions(self): 40 self.parser.add_option('-b', '--branch', 41 action="store", dest="branch", 42 help="branch to submit, overriding the doap branch") 43 39 44 def handleOptions(self, options): 40 45 self.options = options … … 71 76 72 77 # branches on Freshmeat are called "Default" by default 73 branch = release.version.branch or "Default"78 branch = self.options.branch or release.version.branch or "Default" 74 79 # submit 75 80 # FIXME: how do we get changes and release_focus ? … … 105 110 self.stderr.write("ERROR: denied releasing %r\n" % 106 111 self.parentCommand.version) 112 if e.code == 30: 113 self.stderr.write( 114 """ERROR: Freshmeat does not know the branch '%s'. 115 Most projects on Freshmeat have a branch named Default. 116 You can override the branch name manually with -b/--branch. 117 """ % branch) 107 118 elif e.code == 51: 108 119 self.stderr.write(
Note: See TracChangeset
for help on using the changeset viewer.
