Ayrı ayrı do... komutları. Çağlar'ın bahsettiği sorun ile şimdi ilgileneceğim.
This commit is contained in:
@@ -13,6 +13,11 @@ def cmdObject(cmd, fail=False):
|
|||||||
commands = {"help": Help,
|
commands = {"help": Help,
|
||||||
"build": Build,
|
"build": Build,
|
||||||
"build-until": BuildUntil,
|
"build-until": BuildUntil,
|
||||||
|
"build-dounpack": BuildDoUnpack,
|
||||||
|
"build-dosetup": BuildDoSetup,
|
||||||
|
"build-dobuild": BuildDoBuild,
|
||||||
|
"build-doinstall": BuildDoInstall,
|
||||||
|
"build-dopackage": BuildDoPackage,
|
||||||
"info": Info,
|
"info": Info,
|
||||||
"install": Install,
|
"install": Install,
|
||||||
"list-installed": ListInstalled,
|
"list-installed": ListInstalled,
|
||||||
@@ -401,3 +406,103 @@ for you.
|
|||||||
for arg in self.args:
|
for arg in self.args:
|
||||||
pisi.toplevel.build_until(arg, state, self.authInfo)
|
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,6 +5,11 @@ where <command> is one of:
|
|||||||
help
|
help
|
||||||
build
|
build
|
||||||
build-until
|
build-until
|
||||||
|
build-dounpack
|
||||||
|
build-dosetup
|
||||||
|
build-dobuild
|
||||||
|
build-doinstall
|
||||||
|
build-dopackage
|
||||||
index
|
index
|
||||||
info
|
info
|
||||||
install
|
install
|
||||||
|
|||||||
Reference in New Issue
Block a user