Fix the check to see if the path is writable.

This commit is contained in:
Chris Johns 2015-01-26 11:57:43 +11:00
parent 8a7428c94b
commit eeded980e5

View File

@ -459,7 +459,7 @@ def run():
if not list_bset_cfg_files(opts, configs):
prefix = opts.defaults.expand('%{_prefix}')
if not opts.dry_run() and \
not not opts.canadian_cross() and \
not opts.canadian_cross() and \
not opts.no_install() and \
not path.ispathwritable(prefix):
raise error.general('prefix is not writable: %s' % (path.host(prefix)))