summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-09-12 01:12:05 -0700
committerZac Medico <zmedico@gentoo.org>2012-09-12 01:12:05 -0700
commit98a5c7ae69499cc94a1d362aafb9bb2c1eb20ee8 (patch)
tree0bd2f96701a48d0a9ab54000767ba0fff3268bb7
parentPrefer /etc/portage/make.profile. (diff)
downloadportage-2.2.0_alpha127.tar.gz
portage-2.2.0_alpha127.tar.bz2
portage-2.2.0_alpha127.zip
chflags: fixed empty opts argumentv2.2.0_alpha127
This broke in commit 09de8dc47ec48af2276dfa098dd5e1d3d09ddbdd.
-rw-r--r--pym/portage/__init__.py6
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.