diff options
author | Matt Wilson <msw@redhat.com> | 2000-06-05 04:52:18 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-06-05 04:52:18 +0000 |
commit | 10d0359a0036dc3ae00d4a018d96b57ef19f76dc (patch) | |
tree | 3eedbeb2682161de34521ac604d48fb079a3c2be /lilo.py | |
parent | 186fef98e666786b9881b2c154ea60de8a217b6d (diff) | |
download | anaconda-10d0359a0036dc3ae00d4a018d96b57ef19f76dc.tar.gz anaconda-10d0359a0036dc3ae00d4a018d96b57ef19f76dc.tar.xz anaconda-10d0359a0036dc3ae00d4a018d96b57ef19f76dc.zip |
access method for paths
Diffstat (limited to 'lilo.py')
-rw-r--r-- | lilo.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -64,6 +64,9 @@ class LiloConfigFile: l.append(config.getEntry('label')) return l + def getPath (self): + return self.path + def write(self, file, perms = 0644): f = open(file, "w") f.write(self.__repr__()) @@ -238,7 +241,7 @@ class LiloConfiguration: (fsType, sl) = lilo.getImage(label) if fsType == "other": continue - if not os.access(instRoot + label.getPath(), os.R_OK): + if not os.access(instRoot + sl.getPath(), os.R_OK): lilo.delImage(image) bootpart = fstab.getBootDevice() |