Ayrı ayrı do... komutları. Çağlar'ın bahsettiği sorun ile şimdi ilgileneceğim.

This commit is contained in:
Barış Metin
2005-07-29 14:58:06 +00:00
parent 38f1f8e9d0
commit 424fd885ec
2 changed files with 110 additions and 0 deletions
+105
View File
@@ -13,6 +13,11 @@ def cmdObject(cmd, fail=False):
commands = {"help": Help,
"build": Build,
"build-until": BuildUntil,
"build-dounpack": BuildDoUnpack,
"build-dosetup": BuildDoSetup,
"build-dobuild": BuildDoBuild,
"build-doinstall": BuildDoInstall,
"build-dopackage": BuildDoPackage,
"info": Info,
"install": Install,
"list-installed": ListInstalled,
@@ -401,3 +406,103 @@ for you.
for arg in self.args:
pisi.toplevel.build_until(arg, state, self.authInfo)
class BuildDoUnpack(Command):
"""Unpack the source archive
Usage:
build-dounpack <pspec file>
TODO: desc.
"""
def __init__(self):
super(BuildDoUnpack, self).__init__()
def run(self):
if not self.args:
self.help()
return
for arg in self.args:
pisi.toplevel.build_until(arg, "unpack", self.authInfo)
class BuildDoSetup(Command):
"""Setup the source
Usage:
build-dosetup <pspec file>
TODO: desc.
"""
def __init__(self):
super(BuildDoSetup, self).__init__()
def run(self):
if not self.args:
self.help()
return
for arg in self.args:
pisi.toplevel.build_until(arg, "setupaction", self.authInfo)
class BuildDoBuild(Command):
"""Setup the source
Usage:
build-dobuild <pspec file>
TODO: desc.
"""
def __init__(self):
super(BuildDoBuild, self).__init__()
def run(self):
if not self.args:
self.help()
return
for arg in self.args:
pisi.toplevel.build_until(arg, "buildaction", self.authInfo)
class BuildDoInstall(Command):
"""Install to the sandbox
Usage:
build-doinstall <pspec file>
TODO: desc.
"""
def __init__(self):
super(BuildDoInstall, self).__init__()
def run(self):
if not self.args:
self.help()
return
for arg in self.args:
pisi.toplevel.build_until(arg, "installaction", self.authInfo)
class BuildDoPackage(Command):
"""Setup the source
Usage:
build-dobuild <pspec file>
TODO: desc.
"""
def __init__(self):
super(BuildDoPackage, self).__init__()
def run(self):
if not self.args:
self.help()
return
for arg in self.args:
pisi.toplevel.build_until(arg, "buildpackages", self.authInfo)
+5
View File
@@ -5,6 +5,11 @@ where <command> is one of:
help
build
build-until
build-dounpack
build-dosetup
build-dobuild
build-doinstall
build-dopackage
index
info
install