Kaydet (Commit) 0a695458 authored tarafından Barış Metin's avatar Barış Metin

modülleri mümkün olduğunca geç import edelim.

üst 7a48268c
...@@ -4,7 +4,6 @@ import sys ...@@ -4,7 +4,6 @@ import sys
from optparse import OptionParser from optparse import OptionParser
import pisi import pisi
from pisi.cli import buildhelper, installhelper, indexhelper
from pisi.config import config from pisi.config import config
usage = """%prog <command> [options] [arguments] usage = """%prog <command> [options] [arguments]
...@@ -180,6 +179,7 @@ usage: info <package> ... ...@@ -180,6 +179,7 @@ usage: info <package> ...
pass pass
def index(self): def index(self):
from pisi.cli import indexhelper
if not self.args: if not self.args:
self.help("index") self.help("index")
...@@ -198,6 +198,7 @@ usage: info <package> ... ...@@ -198,6 +198,7 @@ usage: info <package> ...
default=True, help="xxxx") default=True, help="xxxx")
def install(self): def install(self):
from pisi.cli import installhelper
if not self.args: if not self.args:
self.help("install") self.help("install")
for arg in self.args: for arg in self.args:
...@@ -209,6 +210,8 @@ usage: info <package> ... ...@@ -209,6 +210,8 @@ usage: info <package> ...
pass pass
def build(self): def build(self):
from pisi.cli import buildhelper
if not self.args: if not self.args:
self.help("build") self.help("build")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment