From d1ccbab6ea926b79338432c6bc83d01ff3a61b1f Mon Sep 17 00:00:00 2001 From: lxnay Date: Mon, 21 Jul 2008 13:37:55 +0000 Subject: [PATCH] Entropy/Spritz: - avoid to install binary packages when a queue is running Entropy/TODO: - updated TODO Entropy/Equo: - added moo option, can't tell you anything on the feature git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2282 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- TODO | 2 -- client/equo.py | 16 ++++++++++++++++ spritz/src/spritz.py | 7 +++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 0db8c2a81..62cd4afd9 100644 --- a/TODO +++ b/TODO @@ -1,8 +1,6 @@ TODO list - - server-side: write a ncurses interface to manage entropy database + spm interface + GLSA - community repos: add repository handling on dependencies to avoid library breakages - External trigger: rewrite support and use bash - - EAPI=3 make client/server using SSL, make the repository server to listen on both - split entropy.py into entropy package - make.profile support (saving profile information into the db) - database backup tools diff --git a/client/equo.py b/client/equo.py index 8ccccd109..14bf7e501 100644 --- a/client/equo.py +++ b/client/equo.py @@ -312,6 +312,19 @@ elif (options[0] == "--info"): text_rescue.getinfo() sys.exit(0) +def do_moo(): + t = """ _____________ +< Entromoooo! > + ------------- + \ ^__^ + \ (oo)\_______ + (__)\ )\/\\ + ||----w | + || || +""" + sys.stdout.write(t) + sys.stdout.flush() + def readerrorstatus(): try: f = open(etpConst['errorstatus'],"r") @@ -378,6 +391,9 @@ try: import text_repositories rc = text_repositories.repositories(options) + elif options[0] == "moo": + do_moo() + elif options[0] in ["install","remove","world","deptest","libtest"]: import text_ui rc = text_ui.package(options) diff --git a/spritz/src/spritz.py b/spritz/src/spritz.py index 76d2051e7..8d7324531 100644 --- a/spritz/src/spritz.py +++ b/spritz/src/spritz.py @@ -53,6 +53,8 @@ class SpritzController(Controller): def __init__( self ): + + self.isBusy = False self.etpbase = EntropyPackages(EquoConnection) # Create and ui object contains the widgets. ui = UI( const.GLADE_FILE , 'main', 'entropy' ) @@ -583,6 +585,9 @@ class SpritzController(Controller): def on_installPackageItem_activate(self, widget = None, fn = None): + if self.isBusy: + return + if not fn: mypattern = '*'+etpConst['packagesext'] fn = FileChooser(pattern = mypattern) @@ -1508,9 +1513,11 @@ class SpritzApplication(SpritzController,SpritzGUI): self.repoView.populate() def setBusy(self): + self.isBusy = True busyCursor(self.ui.main) def unsetBusy(self): + self.isBusy = False normalCursor(self.ui.main) def addPackages(self):