remove unneeded scripts
This commit is contained in:
@@ -1,28 +0,0 @@
|
|||||||
#!/usr/bin/python
|
|
||||||
#
|
|
||||||
# Copyright (C) 2005, TUBITAK/UEKAE
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify it under
|
|
||||||
# the terms of the GNU General Public License as published by the Free
|
|
||||||
# Software Foundation; either version 2 of the License, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
#
|
|
||||||
# Please read the COPYING file.
|
|
||||||
#
|
|
||||||
# Author: Eray Ozkural <eray@uludag.org.tr>
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import bsddb3.dbshelve as shelve
|
|
||||||
import bsddb3.db as db
|
|
||||||
|
|
||||||
sys.path.append('.')
|
|
||||||
|
|
||||||
import pisi
|
|
||||||
import pisi.cli
|
|
||||||
|
|
||||||
d = shelve.open( sys.argv[1], 'r', 0660, filetype = db.DB_BTREE )
|
|
||||||
|
|
||||||
for key, data in d.items():
|
|
||||||
pisi.cli.printu(u'%s: %s\n' % (key, data))
|
|
||||||
|
|
||||||
d.close()
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
#!/usr/bin/python
|
|
||||||
#
|
|
||||||
# Copyright (C) 2005, TUBITAK/UEKAE
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify it under
|
|
||||||
# the terms of the GNU General Public License as published by the Free
|
|
||||||
# Software Foundation; either version 2 of the License, or (at your option)
|
|
||||||
# any later version.
|
|
||||||
#
|
|
||||||
# Please read the COPYING file.
|
|
||||||
#
|
|
||||||
# Author: Eray Ozkural
|
|
||||||
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
|
|
||||||
import pisi
|
|
||||||
import pisi.context as ctx
|
|
||||||
|
|
||||||
usage = "Usage: pisimedia <pisi-index.xml>"
|
|
||||||
|
|
||||||
if len(sys.argv)!=2:
|
|
||||||
print usage
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
#op = sys.argv[1]
|
|
||||||
#if not op in ['install', 'upgrade']:
|
|
||||||
# print usage
|
|
||||||
# sys.exit(2)
|
|
||||||
|
|
||||||
idx = sys.argv[1]
|
|
||||||
if not os.path.exists(idx):
|
|
||||||
print "pisi index %s cannot be found" % idx
|
|
||||||
|
|
||||||
pisi.api.init()
|
|
||||||
|
|
||||||
try:
|
|
||||||
tmpid = 0
|
|
||||||
tmprepo = 'pisimedia%d' % tmpid
|
|
||||||
while ctx.repodb.has_repo(tmprepo):
|
|
||||||
tmpid += 1
|
|
||||||
tmprepo = 'pisimedia%d' % tmpid
|
|
||||||
pisi.api.add_repo(tmprepo, idx, at = 0)
|
|
||||||
pisi.api.update_repo(tmprepo)
|
|
||||||
packages = ctx.packagedb.list_packages(repo=tmprepo)
|
|
||||||
pisi.api.install(packages, reinstall=True)
|
|
||||||
except Exception, e:
|
|
||||||
ctx.ui.error(e)
|
|
||||||
|
|
||||||
if ctx.repodb.has_repo(tmprepo):
|
|
||||||
pisi.api.remove_repo(tmprepo)
|
|
||||||
pisi.api.finalize()
|
|
||||||
@@ -89,7 +89,7 @@ setup(name="pisi",
|
|||||||
packages = ['pisi', 'pisi.cli', 'pisi.actionsapi', 'pisi.pxml', 'pisi.search', 'pisi.scenarioapi'],
|
packages = ['pisi', 'pisi.cli', 'pisi.actionsapi', 'pisi.pxml', 'pisi.search', 'pisi.scenarioapi'],
|
||||||
scripts = ['pisi-cli', 'scripts/repostats.py', 'scripts/find-lib-deps.py',
|
scripts = ['pisi-cli', 'scripts/repostats.py', 'scripts/find-lib-deps.py',
|
||||||
'scripts/lspisi', 'scripts/unpisi', 'scripts/check-newconfigs.py',
|
'scripts/lspisi', 'scripts/unpisi', 'scripts/check-newconfigs.py',
|
||||||
'scripts/calc-build-order.py', 'scripts/pisish', 'scripts/pisimedia'],
|
'scripts/calc-build-order.py'],
|
||||||
cmdclass = {
|
cmdclass = {
|
||||||
'install' : Install
|
'install' : Install
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user