remove çalışsın. modülleri mümkün olduğunca geç import edelim. komut satırı biraz daha hızlanmış olur.
This commit is contained in:
@@ -2,7 +2,6 @@ import sys
|
|||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import pisi
|
import pisi
|
||||||
from pisi.config import config
|
from pisi.config import config
|
||||||
import pisi.operations
|
|
||||||
from pisi.purl import PUrl
|
from pisi.purl import PUrl
|
||||||
from common import *
|
from common import *
|
||||||
|
|
||||||
@@ -140,7 +139,8 @@ class Remove(Command):
|
|||||||
return
|
return
|
||||||
|
|
||||||
for arg in self.args:
|
for arg in self.args:
|
||||||
pisi.install.remove(arg)
|
from pisi.operations import remove
|
||||||
|
remove(arg)
|
||||||
|
|
||||||
class Info(Command):
|
class Info(Command):
|
||||||
"""info: display information about a package
|
"""info: display information about a package
|
||||||
@@ -159,7 +159,8 @@ class Info(Command):
|
|||||||
def printinfo(self, arg):
|
def printinfo(self, arg):
|
||||||
import os.path
|
import os.path
|
||||||
if os.path.exists(arg):
|
if os.path.exists(arg):
|
||||||
metadata, files = pisi.operations.info(arg)
|
from pisi.operations import info
|
||||||
|
metadata, files = info(arg)
|
||||||
print metadata.package
|
print metadata.package
|
||||||
|
|
||||||
class Index(Command):
|
class Index(Command):
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# PISI Configuration module is used for gathering and providing
|
# PISI Configuration module is used for gathering and providing
|
||||||
# regular PISI configurations.
|
# regular PISI configurations.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user