(self)
Finds pkg names on lines containing one.
Finds pkg names on lines containing one.
Finds pkg names on lines containing one .
def ParseIndex(self):
    """Finds pkg names on lines containing one."""
    f = open(TMPINDEX, 'r')
    index = f.read().splitlines()

    for line in index:
      if line.rfind('href') != -1:
        pkg = line.split('href=')[1].split('\"')[1]
        if pkg.endswith('dmg'):
          self.pkgs.append(pkg)
def ParseIndex ( self ) : f = open ( TMPINDEX , 'r' ) index = f . read ( ) . splitlines ( ) for line in index : if line . rfind ( 'href' ) != - 1 : pkg = line . split ( 'href=' ) [ 1 ] . split ( '\"' ) [ 1 ] if pkg . endswith ( 'dmg' ) : self . pkgs . append ( pkg )