From 3d298b1423a4a7ce173050b9d3b701d214f61ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Sun, 21 May 2006 13:47:21 +0000 Subject: [PATCH] =?UTF-8?q?version.py'de=20d=C3=BCzeltildi=20bu,=20art?= =?UTF-8?q?=C4=B1k=20buna=20ihtiyac=C4=B1m=C4=B1z=20yok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/illegal-names.py | 56 ---------------------------------------- 1 file changed, 56 deletions(-) delete mode 100755 scripts/illegal-names.py diff --git a/scripts/illegal-names.py b/scripts/illegal-names.py deleted file mode 100755 index 26078d30..00000000 --- a/scripts/illegal-names.py +++ /dev/null @@ -1,56 +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, specFile.source.name)] - return packages - -def usage(miniMe): - print """Usage: - %s srcREP (ex: %s /home/bahadir/repos/pardus/devel/kernel) - """ % (miniMe, miniMe) - - sys.exit(1) - -if __name__ == "__main__": - try: - repSRC = sys.argv[1] - except IndexError: - usage(sys.argv[0]) - - packages = getPackages(findPspec(repSRC)) - - print "Illegal package names:" - for p, s in packages: - if p[0].lower() not in "abcdefghijklmnopqrstuvwxyz": - print " %s (%s)" % (p, s)