diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-07-29 12:05:43 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-07-29 12:05:43 +0000 |
commit | d85aa8088a5cd4bc27b7d2d568242e5c84a758a0 (patch) | |
tree | 9ae2c3668bd46ada351a358bab22b5a32a4aee94 /cnf/logrotate.d/elog-save-summary | |
parent | 428efdb7ac7592f3e6f57bf390bc76ff9bb8c88f (diff) | |
download | portage-d85aa8088a5cd4bc27b7d2d568242e5c84a758a0.tar.gz portage-d85aa8088a5cd4bc27b7d2d568242e5c84a758a0.tar.bz2 portage-d85aa8088a5cd4bc27b7d2d568242e5c84a758a0.zip |
Add support for the --jobs option to be specified without an
argument, and also support -j as a short option. Since optparse
doesn't natively support options with non-required args, create an
insert_optional_args() function that inserts the required argument
into the args so that optparse is happy. The function inserts the
string True as a substitute for the argument that is required. This
string is later converted to the True constant when stored in
the emerge opts dict (similar to how normal boolean options are
stored). The PollScheduler and SequentialTaskQueue classes recognize
the meaning of the True constant to mean unlimited concurrent jobs.
svn path=/main/trunk/; revision=11261
Diffstat (limited to 'cnf/logrotate.d/elog-save-summary')
0 files changed, 0 insertions, 0 deletions