From 304055279fcf1280253c1aed6ba27e7ce9e61a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Thu, 12 Oct 2006 21:27:03 +0000 Subject: [PATCH] =?UTF-8?q?bunlar=C4=B1=20sadece=20ben=20farm'da=20kullan?= =?UTF-8?q?=C4=B1yorum=20ve=20depo=20i=C5=9Fi=20yap=C4=B1yorlar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/missing-binary.py | 64 ------------------------------------ scripts/residuary-binary.py | 65 ------------------------------------- 2 files changed, 129 deletions(-) delete mode 100755 scripts/missing-binary.py delete mode 100755 scripts/residuary-binary.py diff --git a/scripts/missing-binary.py b/scripts/missing-binary.py deleted file mode 100755 index b133db0f..00000000 --- a/scripts/missing-binary.py +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -# -# 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. - -import os -import re -import sys - -from pisi.specfile import SpecFile -from pisi.util import join_path - -def findPspec(folder): - pspecList = [] - for root, dirs, files in os.walk(folder): - if "pspec.xml" in files: - pspecList.append(root) - # dont walk into the versioned stuff - if ".svn" in dirs: - dirs.remove(".svn") - return pspecList - -def getPackages(pspecList): - packages = [] - for pspec in pspecList: - specFile = SpecFile(join_path(pspec, "pspec.xml")) - for p in specFile.packages: - packages += [(p.name, - "%s-%s" % (specFile.history[0].version, specFile.history[0].release), - specFile.source.name)] - return packages - -def usage(miniMe): - print """Usage: - %s srcREP binREP (ex: %s /home/bahadir/repos/pardus/devel/kernel /home/bahadir/binary) - """ % (miniMe, miniMe) - - sys.exit(1) - -if __name__ == "__main__": - try: - repSRC = sys.argv[1] - except IndexError: - usage(sys.argv[0]) - - try: - repBIN = sys.argv[2] - except IndexError: - usage(sys.argv[0]) - - packages = getPackages(findPspec(repSRC)) - binaries = os.listdir(repBIN) - - print "Missing binary packages:" - for p, v, s in packages: - if not filter(lambda x: x.startswith("%s-%s" % (p, v)), binaries): - print " %s (%s)" % (p, s) diff --git a/scripts/residuary-binary.py b/scripts/residuary-binary.py deleted file mode 100755 index 5326270c..00000000 --- a/scripts/residuary-binary.py +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/python -# -*- coding: utf-8 -*- -# -# 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. - -import os -import re -import sys - -from pisi.specfile import SpecFile -from pisi.util import join_path, parse_package_name - -def findPspec(folder): - pspecList = [] - for root, dirs, files in os.walk(folder): - if "pspec.xml" in files: - pspecList.append(root) - # dont walk into the versioned stuff - if ".svn" in dirs: - dirs.remove(".svn") - return pspecList - -def getPackages(pspecList): - packages = [] - for pspec in pspecList: - specFile = SpecFile(join_path(pspec, "pspec.xml")) - for p in specFile.packages: - packages += [p.name] - return packages - -def usage(miniMe): - print """Usage: - %s srcREP binREP (ex: %s /home/bahadir/repos/pardus/devel/kernel /home/bahadir/binary) - """ % (miniMe, miniMe) - - sys.exit(1) - -if __name__ == "__main__": - try: - repSRC = sys.argv[1] - except IndexError: - usage(sys.argv[0]) - - try: - repBIN = sys.argv[2] - except IndexError: - usage(sys.argv[0]) - - packages = getPackages(findPspec(repSRC)) - - binaries = {} - for f in filter(lambda x: x.endswith(".pisi"), os.listdir(repBIN)): - binaries[parse_package_name(f)[0]] = f - - print "Residuary binary packages:" - for b in binaries: - if b not in packages: - print " %s" % binaries[b]