Editing Device management using Bcfg2
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 377: | Line 377: | ||
* <code>VerifyPackage</code> method needs probably to be made a bit more liberal, like returning true if <code>entry.attrib['version']</code> equals <code>'auto'</code> or <code>'any'</code> | * <code>VerifyPackage</code> method needs probably to be made a bit more liberal, like returning true if <code>entry.attrib['version']</code> equals <code>'auto'</code> or <code>'any'</code> | ||
- | |||
- | |||
* Proxies could be copied from shell environment by adding them into <code>pkgtool</code>. Something like | * Proxies could be copied from shell environment by adding them into <code>pkgtool</code>. Something like | ||
- | proxies = | + | proxies = '' |
for p in ('http','https','ftp'): | for p in ('http','https','ftp'): | ||
if os.environ.has_key('%s_proxy' % p): | if os.environ.has_key('%s_proxy' % p): | ||
proxies += '%s=%s ' % ('%s_proxy' % p, os.environ.get('%s_proxy' % p)) | proxies += '%s=%s ' % ('%s_proxy' % p, os.environ.get('%s_proxy' % p)) | ||
pkgtool = proxies + ' ' + pkgtool | pkgtool = proxies + ' ' + pkgtool | ||
+ | |||
+ | <code>pkgtool</code> could probably be copied from <code>APT.py</code> | ||
And how to get proxies into shell variables? One option is to use Bcfg2 to manage some file which is sourced by shell | And how to get proxies into shell variables? One option is to use Bcfg2 to manage some file which is sourced by shell | ||
[[Category:Power users]] | [[Category:Power users]] |
Learn more about Contributing to the wiki.