diff options
Diffstat (limited to 'root-src-fix.patch')
-rw-r--r-- | root-src-fix.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/root-src-fix.patch b/root-src-fix.patch new file mode 100644 index 000000000000..a822ef61f029 --- /dev/null +++ b/root-src-fix.patch @@ -0,0 +1,22 @@ +--- lb.py~ 2008-05-13 22:56:36.000000000 -0400 ++++ lb.py 2008-05-13 22:56:55.000000000 -0400 +@@ -281,6 +281,8 @@ + """ + def __init__(self, path): + self.path = os.path.abspath(path) ++ if self.path == os.sep: ++ self.path = "" + self.lenbase = len('%s%s' % (self.path, os.sep)) + self.logpath = join(self.path, 'log') + if not os.path.exists(self.path): +@@ -751,7 +753,9 @@ + def build_filelist_from_tree(treepath): + class ListBuilder: + def __init__(self, basepath): +- self.lenbase = len('%s%s' % (basepath, os.sep)) ++ if basepath == os.sep: ++ basepath = "" ++ self.lenbase = len('%s%s' % (basepath, os.sep)) + + def callback(self, arg, dirpath, filelist): + for file in filelist: |