diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-07-02 18:15:27 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-07-02 18:15:27 +0000 |
commit | 1e7d087800f9f8372109f67b02a44fdb20fe4ac5 (patch) | |
tree | d553be266ecb68b0289042efa6eed526a4eafc65 | |
parent | 1eb65c796f126148773116bea79bac0478ca2a97 (diff) | |
download | portage-1e7d087800f9f8372109f67b02a44fdb20fe4ac5.tar.gz portage-1e7d087800f9f8372109f67b02a44fdb20fe4ac5.tar.bz2 portage-1e7d087800f9f8372109f67b02a44fdb20fe4ac5.zip |
Ignore hidden directories (such as .svn) when building the scanlist.
svn path=/main/trunk/; revision=3760
-rwxr-xr-x | bin/repoman | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/repoman b/bin/repoman index 5508373fb..5aef6da10 100755 --- a/bin/repoman +++ b/bin/repoman @@ -604,7 +604,7 @@ if repolevel==2: caterror(catdir) mydirlist=os.listdir(startdir) for x in mydirlist: - if x=="CVS": + if x == "CVS" or x.startswith("."): continue if os.path.isdir(startdir+"/"+x): scanlist.append(catdir+"/"+x) @@ -613,7 +613,7 @@ elif repolevel==1: if not os.path.isdir(startdir+"/"+x): continue for y in os.listdir(startdir+"/"+x): - if y=="CVS": + if y == "CVS" or y.startswith("."): continue if os.path.isdir(startdir+"/"+x+"/"+y): scanlist.append(x+"/"+y) |