genpkgmetadata.py

[email protected] (James Antill) Thu, 16 Feb 2012 16:29:37 +0000 (UTC)
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
 genpkgmetadata.py |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 6a3315bfe7704d277c43a8ec5dd3733350105e9e
Author: James Antill <[email protected]>
Date:   Thu Feb 16 11:29:26 2012 -0500

    Limit number of workers to 128 (should be enough for anyone :).

diff --git a/genpkgmetadata.py b/genpkgmetadata.py
index ce8e452..9bf8c8d 100755
--- a/genpkgmetadata.py
+++ b/genpkgmetadata.py
@@ -145,6 +145,9 @@ def parse_args(args, conf):
     else:
         directories = argsleft
 
+    if opts.workers >= 128:
+        errorprint(_('Warning: More than 128 workers is a lot. Limiting.'))
+        opts.workers = 128
     if opts.sumtype == 'sha1':
         errorprint(_('Warning: It is more compatible to use sha instead of sha1'))