projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feb99d3
)
Sort filenames for predictable results.
author
Zac Medico
<zmedico@gentoo.org>
Fri, 23 Jun 2006 07:29:20 +0000
(07:29 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 23 Jun 2006 07:29:20 +0000
(07:29 -0000)
svn path=/main/trunk/; revision=3621
pym/portage_util.py
patch
|
blob
|
history
diff --git
a/pym/portage_util.py
b/pym/portage_util.py
index 798937b63fd38dd5a40a626460feb4dd49756584..a8f396c51925a9833ad649018f83d49b7fb01871 100644
(file)
--- a/
pym/portage_util.py
+++ b/
pym/portage_util.py
@@
-182,7
+182,9
@@
def grabfile_package(myfilename, compatlevel=0, recursive=0):
def grablines(myfilename,recursive=0):
mylines=[]
if recursive and os.path.isdir(myfilename):
- for f in os.listdir(myfilename):
+ dirlist = os.listdir(myfilename)
+ dirlist.sort()
+ for f in dirlist:
if not f.startswith("."):
mylines.extend(grablines(
os.path.join(myfilename, f), recursive))