diff --git a/scripts/cat-db.py b/scripts/cat-db.py deleted file mode 100755 index 7f0819de..00000000 --- a/scripts/cat-db.py +++ /dev/null @@ -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 - -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() diff --git a/scripts/pisimedia b/scripts/pisimedia deleted file mode 100755 index 3350162a..00000000 --- a/scripts/pisimedia +++ /dev/null @@ -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 " - -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() diff --git a/setup.py b/setup.py index 307ea537..adffbf61 100755 --- a/setup.py +++ b/setup.py @@ -89,7 +89,7 @@ setup(name="pisi", packages = ['pisi', 'pisi.cli', 'pisi.actionsapi', 'pisi.pxml', 'pisi.search', 'pisi.scenarioapi'], scripts = ['pisi-cli', 'scripts/repostats.py', 'scripts/find-lib-deps.py', 'scripts/lspisi', 'scripts/unpisi', 'scripts/check-newconfigs.py', - 'scripts/calc-build-order.py', 'scripts/pisish', 'scripts/pisimedia'], + 'scripts/calc-build-order.py'], cmdclass = { 'install' : Install }