mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Switch portage.dep.strip_empty(...) to filter(None,...) to avoid deprecation warning and do essentially the same
This commit is contained in:
parent
3df3b85090
commit
2851a5cf13
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ def append_to_package_conf(conf, atom='', flags=None, string='', overwrite=False
|
|||
new_flags = list(flags)
|
||||
else:
|
||||
atom = string.strip().split()[0]
|
||||
new_flags = portage.dep.strip_empty(string.strip().split(' '))[1:]
|
||||
new_flags = filter(None,string.strip().split(' '))[1:]
|
||||
if '/' not in atom:
|
||||
atom = _p_to_cp(atom)
|
||||
string = '{0} {1}'.format(atom, ' '.join(new_flags))
|
||||
|
|
Loading…
Add table
Reference in a new issue