diff options
author | Bill Nottingham <notting@redhat.com> | 2005-09-09 04:52:18 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-09-09 04:52:18 +0000 |
commit | 5c90ff7b2b9e3486413d87dea2d26ff0e187a99f (patch) | |
tree | 970d581724573564c7962475bc0397f3b1a8df06 /utils/checkcards.py | |
parent | ec4a87597dc1d0f653b2e0574d57e55dbc727ddd (diff) | |
download | anaconda-5c90ff7b2b9e3486413d87dea2d26ff0e187a99f.tar.gz anaconda-5c90ff7b2b9e3486413d87dea2d26ff0e187a99f.tar.xz anaconda-5c90ff7b2b9e3486413d87dea2d26ff0e187a99f.zip |
* anaconda.spec: Bump version, tweak requirements
* installclass.py (setVideoCard, configureX): Adapt to new rhpl
X setup code
* kickstart.py (doXConfig): Likewise
* kickstartData.py (__init__): Likewise
* kickstartParser.py (doXConfig): Likewise
* packages.py (writeXConfiguration): Likewise
* xsetup.py (getArgList): Likewise
* scripts/mk-images: Remove modules.pcimap, modules.usbmap,
pcitable, from images, and associated trimmer scripts from
files used. Add modules.alias, videoaliases. Trim modules.alias
using trimmodalias.
* scripts/upd-instroot: Don't keep Cards, but keep videoaliases.
Don't run checkcards.py
* utils/trimmodalias: New script, trim modules.alias file to
match modules in the first/second stage
* utils/trimpciids: Trim pci.ids based on modules.alias and
videoaliases, not pcitable and modules.pcimap
* utils/checkcards.py: Remove now obsolete script
* utils/trimmodmap: Likewise
* utils/trimpcitable: Likewise
* utils/trimusbmap: Likewise
Diffstat (limited to 'utils/checkcards.py')
-rwxr-xr-x | utils/checkcards.py | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/utils/checkcards.py b/utils/checkcards.py deleted file mode 100755 index 6ac81755b..000000000 --- a/utils/checkcards.py +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/python -import sys -import string - -def usage(): - print "Usage: checkcards.py [pcitable] [Cards]" - -if len(sys.argv) < 2: - usage () - sys.exit (1) - -pcifile = sys.argv[1] -cardsfile = sys.argv[2] - -def getcards (cardsfile): - cards = {} - db = open (cardsfile) - lines = db.readlines () - db.close () - card = {} - name = None - for line in lines: - line = string.strip (line) - if not line and name: - cards[name] = card - card = {} - name = None - continue - - if line and line[0] == '#': - continue - - if len (line) > 4 and line[0:4] == 'NAME': - name = line[5:] - - info = string.splitfields (line, ' ') - if card.has_key (info[0]): - card[info[0]] = card[info[0]] + '\n' + (string.joinfields (info[1:], ' ')) - else: - card[info[0]] = string.joinfields (info[1:], ' ') - - return cards - -pcitable = open (pcifile, 'r') -lines = pcitable.readlines() -cards = [] -for line in lines: - if line[0] == '#': - continue - fields = string.split(line, '\t') - if len (fields) < 4: - continue - card = fields[2] - if card[1:6] == "Card:": - cards.append (card[6:-1]) - -carddb = getcards (cardsfile) - -rc = 0 -for card in cards: - if not carddb.has_key(card): - print "*** pcitable error *** Card not found:", card - rc = 1 - -sys.exit(rc) - |