diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-09-12 01:12:05 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-09-12 01:12:05 -0700 |
commit | 98a5c7ae69499cc94a1d362aafb9bb2c1eb20ee8 (patch) | |
tree | 0bd2f96701a48d0a9ab54000767ba0fff3268bb7 | |
parent | 96b053ac52fa37fdd61cbb76cb44dfb90fb49f86 (diff) | |
download | portage-98a5c7ae69499cc94a1d362aafb9bb2c1eb20ee8.tar.gz portage-98a5c7ae69499cc94a1d362aafb9bb2c1eb20ee8.tar.bz2 portage-98a5c7ae69499cc94a1d362aafb9bb2c1eb20ee8.zip |
chflags: fixed empty opts argumentv2.2.0_alpha127
This broke in commit 09de8dc47ec48af2276dfa098dd5e1d3d09ddbdd.
-rw-r--r-- | pym/portage/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 8d5793c03..ee5104211 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -347,7 +347,11 @@ if platform.system() in ('FreeBSD',): @classmethod def chflags(cls, path, flags, opts=""): - cmd = ['chflags', opts, '%o' % (flags,), path] + cmd = ['chflags'] + if opts: + cmd.append(opts) + cmd.append('%o' % (flags,)) + cmd.append(path) encoding = _encodings['fs'] if sys.hexversion < 0x3000000 or sys.hexversion >= 0x3020000: # Python 3.1 does not support bytes in Popen args. |