lib/gettor/requests.py
def matchPackage(self, line):
        """Look up which package the user is requesting.
        """
        for p in self.config.PACKAGES.keys():
            matchme = ".*" + p + ".*"
            match = re.match(matchme, line, re.DOTALL)    
            if match: 
                logging.debug("User requested package %s" % p)
                return p

        return None
Look up which package the user is requesting.
        
Look up which package the user is requesting.
Look up which package the user is requesting .
def matchPackage(self, line):
        for p in self.config.PACKAGES.keys():
            matchme = ".*" + p + ".*"
            match = re.match(matchme, line, re.DOTALL)    
            if match: 
                logging.debug("User requested package %s" % p)
                return p
        return None
def matchPackage ( self , line ) : for p in self . config . PACKAGES . keys ( ) : matchme = ".*" + p + ".*" match = re . match ( matchme , line , re . DOTALL ) if match : logging . debug ( "User requested package %s" % p ) return p return None
Look up which package the user is requesting.
Look up which package the user is requesting .
"""Look up which package the user is requesting.
        """
self
line