* use absolute ui name, uh didn't work
This commit is contained in:
@@ -56,7 +56,6 @@ class Command(object):
|
|||||||
self.args.pop(0) # exclude command arg
|
self.args.pop(0) # exclude command arg
|
||||||
|
|
||||||
import pisi
|
import pisi
|
||||||
#from pisi.ui import ui
|
|
||||||
|
|
||||||
# initialize PiSi
|
# initialize PiSi
|
||||||
pisi.config.config = pisi.config.Config(self.options)
|
pisi.config.config = pisi.config.Config(self.options)
|
||||||
@@ -97,6 +96,8 @@ class Command(object):
|
|||||||
|
|
||||||
# IMPORTANT: command imports here or in the command class run fxns
|
# IMPORTANT: command imports here or in the command class run fxns
|
||||||
import pisi.toplevel
|
import pisi.toplevel
|
||||||
|
from pisi.ui import ui
|
||||||
|
|
||||||
if database:
|
if database:
|
||||||
from pisi.repodb import repodb
|
from pisi.repodb import repodb
|
||||||
repodb.init_dbs()
|
repodb.init_dbs()
|
||||||
@@ -179,12 +180,13 @@ class PackageOp(Command):
|
|||||||
|
|
||||||
def init(self):
|
def init(self):
|
||||||
super(PackageOp, self).init(True)
|
super(PackageOp, self).init(True)
|
||||||
|
import pisi
|
||||||
import pisi.comariface
|
import pisi.comariface
|
||||||
if not self.options.ignore_comar:
|
if not self.options.ignore_comar:
|
||||||
try:
|
try:
|
||||||
pisi.comariface.init()
|
pisi.comariface.init()
|
||||||
except pisi.comariface.ComarError:
|
except pisi.comariface.ComarError:
|
||||||
ui.error('Comar error encountered\n')
|
pisi.ui.ui.error('Comar error encountered\n')
|
||||||
self.die()
|
self.die()
|
||||||
|
|
||||||
def finalize(self):
|
def finalize(self):
|
||||||
@@ -269,9 +271,6 @@ class ConfigurePending(PackageOp):
|
|||||||
super(ConfigurePending, self).__init__()
|
super(ConfigurePending, self).__init__()
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
#if not self.args:
|
|
||||||
# self.help()
|
|
||||||
# return
|
|
||||||
|
|
||||||
self.init()
|
self.init()
|
||||||
pisi.toplevel.configure_pending()
|
pisi.toplevel.configure_pending()
|
||||||
|
|||||||
Reference in New Issue
Block a user