[yum-cvs] yum/yum sqlitesack.py,1.35,1.36
Jeremy Katz
katzj at linux.duke.edu
Tue Jun 13 16:03:07 UTC 2006
Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv31886/yum
Modified Files:
sqlitesack.py
Log Message:
uniqify the file list. this avoids the fact that with the C-parser and the
filesystem package, the list of files ends up with / at the end and so we
end up with double entries. since we can't have duplicate filenames in
a directory anyway, unique fixes
Index: sqlitesack.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/sqlitesack.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- sqlitesack.py 28 May 2006 05:32:49 -0000 1.35
+++ sqlitesack.py 13 Jun 2006 16:03:05 -0000 1.36
@@ -537,7 +537,7 @@
# Return a list representing filestring (filenames can not contain /)
def decodefilenamelist(filenamestring):
- return filenamestring.split('/')
+ return misc.unique(filenamestring.split('/'))
# Return a string representing filetypeslist
# filetypes should be file, dir or ghost
More information about the Yum-cvs-commits
mailing list