* ick!
* ismi args olsun aramasi kolay olsun.
This commit is contained in:
@@ -28,11 +28,8 @@ def pisi_added_repo(name, url):
|
||||
def pisi_updated_repo():
|
||||
os.system("pisi -D%s update-repo" % consts.pisi_db)
|
||||
|
||||
def pisi_installed(*pkg):
|
||||
if type(pkg[0]) == tuple:
|
||||
packages = util.strlist(pkg[0]).rstrip()
|
||||
else:
|
||||
packages = util.strlist(pkg).rstrip()
|
||||
def pisi_installed(*args):
|
||||
packages = util.strlist(args).rstrip()
|
||||
os.system("pisi -D%s install %s" % (consts.pisi_db, packages))
|
||||
|
||||
def pisi_reinstalled(package):
|
||||
|
||||
@@ -22,7 +22,7 @@ def let_repo_had(package, *args):
|
||||
repo_added_package(package, *args)
|
||||
repo_updated_index()
|
||||
|
||||
def let_pisi_had(*pkg):
|
||||
def let_pisi_had(*args):
|
||||
url = os.path.join(os.getcwd(), consts.repo_url)
|
||||
pisi_added_repo(consts.repo_name, url)
|
||||
pisi_installed(pkg)
|
||||
pisi_installed(*args)
|
||||
|
||||
Reference in New Issue
Block a user