Changeset 197


Ignore:
Timestamp:
17-04-07 23:38:18 (6 years ago)
Author:
thomas
Message:
  • moap/command/doap.py (Freshmeat.addOptions, Freshmeat.handleOptions, Freshmeat.do): FEATURE: added moap doap freshmeat -b to force a branch name, as Freshmeat uses Default as the default name.

release 0.4.3

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r194 r197  
     12007-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 
    18=== release 0.4.3 === 
    29 
  • trunk/moap/command/doap.py

    r193 r197  
    3737""" 
    3838 
     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  
    3944    def handleOptions(self, options): 
    4045        self.options = options 
     
    7176 
    7277        # 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" 
    7479        # submit 
    7580        # FIXME: how do we get changes and release_focus ? 
     
    105110                self.stderr.write("ERROR: denied releasing %r\n" % 
    106111                    self.parentCommand.version) 
     112            if e.code == 30: 
     113                self.stderr.write( 
     114                    """ERROR: Freshmeat does not know the branch '%s'. 
     115Most projects on Freshmeat have a branch named Default. 
     116You can override the branch name manually with -b/--branch. 
     117""" % branch) 
    107118            elif e.code == 51: 
    108119                self.stderr.write( 
Note: See TracChangeset for help on using the changeset viewer.