HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #233

Ticket #233: haikuporter_patch.diff

File haikuporter_patch.diff, 1.1 KB (added by haikubot, 6 years ago)
  • haikuporter

     
    137137                        port = args[0] 
    138138 
    139139                # split the argument into a port name and a version 
    140                 reWithVersion = re.compile('^(?P<name>[a-z\-_]*)-(?P<version>([\d]+[a-z\\.])*[\d]*)?$') 
    141                 reWithoutVersion = re.compile('^(?P<name>[a-z\-_]*)$') 
     140                reWithVersion = re.compile('^(?P<name>[a-z0-9\-_]*)-(?P<version>([\d]+[a-z\\.])*[\d]*)?$') 
     141                reWithoutVersion = re.compile('^(?P<name>[a-z0-9\-_]*)$') 
    142142                if reWithVersion.match(port):           # with version 
    143143                        m = reWithVersion.match(port) 
    144144                        self.portName = m.group("name") 
    … …  
    166166                # if the port version was not specified, list available versions 
    167167                if self.portVersion == None: 
    168168                        versions = [] 
    169                         reBepFile = re.compile('^(?P<name>[a-z\-_]*)-(?P<version>([\d]+[a-z\\.])*[\d]*)?\.bep$') 
     169                        reBepFile = re.compile('^(?P<name>[a-z0-9\-_]*)-(?P<version>([\d]+[a-z\\.])*[\d]*)?\.bep$') 
    170170                        os.chdir(self.portDir) 
    171171                        dirList = os.listdir(".") 
    172172                        for item in dirList: 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/