diff options
author | 2008-07-28 23:15:04 +0000 | |
---|---|---|
committer | 2008-07-28 23:15:04 +0000 | |
commit | f9586635b12205a586acd6c432dbbf7c5229bc1d (patch) | |
tree | ff904a6272f883be44c99b3f777c101a01b93c2f /users | |
parent | Other fixes (damned previous quick commit :P) (diff) | |
download | gentoo-f9586635b12205a586acd6c432dbbf7c5229bc1d.tar.gz gentoo-f9586635b12205a586acd6c432dbbf7c5229bc1d.tar.bz2 gentoo-f9586635b12205a586acd6c432dbbf7c5229bc1d.zip |
Fix path/file bug from last commit, fix CVS and .svn dirs per bug 233208
Diffstat (limited to 'users')
-rw-r--r-- | users/antarus/projects/infra/use_desc_gen | 2 | ||||
-rw-r--r-- | users/antarus/projects/infra/use_desc_gen.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/users/antarus/projects/infra/use_desc_gen b/users/antarus/projects/infra/use_desc_gen index bc87d59658..ecd3335f2d 100644 --- a/users/antarus/projects/infra/use_desc_gen +++ b/users/antarus/projects/infra/use_desc_gen @@ -31,7 +31,7 @@ def GetOpts(): def Main(): """Main.""" opts, unused_args = GetOpts() - use_desc_gen.FindMetadataFiles(opts.repo_path, opts.category_path) + use_desc_gen.FindMetadataFiles(opts.repo_path, opts.category_file) if __name__ == '__main__': diff --git a/users/antarus/projects/infra/use_desc_gen.py b/users/antarus/projects/infra/use_desc_gen.py index 7a5e69f5b1..8313d6f756 100644 --- a/users/antarus/projects/infra/use_desc_gen.py +++ b/users/antarus/projects/infra/use_desc_gen.py @@ -128,8 +128,8 @@ def GetPackages(cat_path): """Return a list of packages for a given category.""" files = os.listdir(cat_path) - if METADATA_XML in files: - files.remove(METADATA_XML) + func = lambda f: f != METADATA_XML and f != 'CVS' and f != '.svn' + files = filter(func, files) return files @@ -176,7 +176,7 @@ def GetOpts(): def Main(): """Main.""" opts, unused_args = GetOpts() - FindMetadataFiles(opts.repo_path, opts.category_path) + FindMetadataFiles(opts.repo_path, opts.category_file) if __name__ == '__main__': |