summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-07-02 20:08:09 +0000
committerMatt Wilson <msw@redhat.com>2001-07-02 20:08:09 +0000
commit3fd75c3831c228d78c55be355a203c9779b78429 (patch)
tree8f1c4a501d447b9b8220bc51a30a467336e6ffee /fsset.py
parent0baae10db4618879a162f0b2d614443d87d941ca (diff)
downloadanaconda-3fd75c3831c228d78c55be355a203c9779b78429.tar.gz
anaconda-3fd75c3831c228d78c55be355a203c9779b78429.tar.xz
anaconda-3fd75c3831c228d78c55be355a203c9779b78429.zip
add magik incantations to root out the evil within the fsset code
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/fsset.py b/fsset.py
index eae51e1ce..1a28efbdd 100644
--- a/fsset.py
+++ b/fsset.py
@@ -389,12 +389,22 @@ class FileSystemSet:
fileSystemTypeGet("devpts"), "gid=5,mode=620")
self.add(pts)
+ def verify (self):
+ for entry in self.entries:
+ if type(entry.__dict__) != type({}):
+ raise RuntimeError, "fsset internals inconsistent"
+
def add (self, entry):
# remove any existing duplicate entries
for existing in self.entries:
if (existing.device.getDevice() == entry.device.getDevice()
and existing.mountpoint == entry.mountpoint):
self.remove(existing)
+ # XXX debuggin'
+ log ("fsset at %s\n"
+ "adding entry for %s\n"
+ "entry object %s, class __dict__ is %s",
+ self, entry.mountpoint, entry, isys.printObject(entry.__dict__))
self.entries.append(entry)
self.entries.sort (mountCompare)
@@ -697,9 +707,6 @@ class Device:
self.label = None
self.isSetup = 0
- def __repr__(self):
- return self.device
-
def getComment (self):
return ""