* ismi args olsun aramasi kolay olsun.
This commit is contained in:
Faik Uygur
2006-08-20 16:05:33 +00:00
parent d4c2d306ab
commit bae771e1cc
2 changed files with 4 additions and 7 deletions
+2 -5
View File
@@ -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):
+2 -2
View File
@@ -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)