Use glob.glob0 and lstrip instead of glob.glob.
Typos in filePaths in pspec.xml were sometimes ignored and abandoned files were not succesfully caught in some cases. Now it is fixed. Thanks Fatih for the collaboration.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2010-02-12 Serdar Dalgıç <serdar@pardus.org.tr>
|
||||
* pisi/operations/build.py: Use glob.glob0 and lstrip instead of
|
||||
glob.glob. Typos in filePaths in pspec.xml were sometimes ignored and
|
||||
abandoned files were not succesfully caught in some cases. Now it is
|
||||
fixed. Thanks Fatih for the collaboration.
|
||||
|
||||
2010-02-12 Gökçen Eraslan <gokcen@pardus.org.tr>
|
||||
* pisi/actionsapi/shelltools.py: Replace FileError with ctx.ui.error
|
||||
since FileError is defined in pisitoolsfunctions.
|
||||
|
||||
@@ -59,7 +59,7 @@ def get_file_type(path, pinfo_list, install_dir):
|
||||
"""Return the file type of a path according to the given PathInfo
|
||||
list"""
|
||||
|
||||
Match = lambda x: [match for match in glob.glob(install_dir + x) if pisi.util.join_path(install_dir, path).find(match) > -1]
|
||||
Match = lambda x: [match for match in glob.glob0(install_dir, x.lstrip("/")) if pisi.util.join_path(install_dir, path).find(match) > -1]
|
||||
|
||||
def Sort(x):
|
||||
x.sort(reverse=True)
|
||||
|
||||
Reference in New Issue
Block a user