From cbbfb16f49b21866a3cf23d23075e968d1057622 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Fri, 29 Jun 2007 18:48:25 +0000 Subject: Fix an fsset entry sorting problem (#242294, patch from Jeffrey Hutzelman ). --- fsset.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'fsset.py') diff --git a/fsset.py b/fsset.py index 81c6515f9..3432e9e81 100644 --- a/fsset.py +++ b/fsset.py @@ -1136,15 +1136,13 @@ class FileSystemSet: devA = a.device.getDevice() devB = b.device.getDevice() - if not mntB or not devB: - return True - if not mntA or not devA: + if not mntB: return False - - if (mntA.startswith(mntB) and mntA != mntB) or (devA.startswith(mntB) and devA != devB): + if mntA and mntA != mntB and mntA.startswith(mntB): return True - else: - return False + if devA and devA != mntB and devA.startswith(mntB): + return True + return False # Remove preexisting duplicate entries - pseudo filesystems are # duplicate if they have the same filesystem type as an existing one. -- cgit