Example #1
0
 def download_apps(self, app_name = ''):
     """
     download one or multiple apps in threaded mode
     """
     queue = Queue()
     self.logger.info('Preparing for download/update')
     for i in range(2):
         current = Thread(target = self.download_thread, name = "dl-%s" % i, args = (queue,))
         current.setDaemon(True)
         current.start()
     for app in self:
         if (app_name and app_name == app.name) or not app_name:
             queue.put(app)
     queue.join()
     self.logger.info('Download/update complete')
     for app in self:
         if app.has_patch():
             print "\nDisplaying %s patch\n\n" % yellow(app.name)
             app.display_patch()
             option = raw_input("\nWould you like to apply this patch? (y/N) ")
             if option.lower()  == 'y':
                 app.apply_patch()
Example #2
0
def fuscia(text):
	return codes["fuscia"] + text + codes["reset"]
def purple(text):
	return codes["purple"] + text + codes["reset"]

def blue(text):
	return codes["blue"] + text + codes["reset"]
def darkblue(text):
	return codes["darkblue"] + text + codes["reset"]

def green(text):
	return codes["green"] + text + codes["reset"]
def darkgreen(text):
	return codes["darkgreen"] + text + codes["reset"]

def yellow(text):
	return codes["yellow"] + text + codes["reset"]
def brown(text):
	return codes["brown"] + text + codes["reset"]
def darkyellow(text):
	return brown(text)

def red(text):
	return codes["red"] + text + codes["reset"]
def darkred(text):
	return codes["darkred"] + text + codes["reset"]

if __name__ == '__main__':
    from deam.utils.output import yellow
    print yellow("hole")