file -- the file to extract
todir -- the directory to extract into"""
- ZIP_CMD = rsutil.common.config_get_value ('commands', 'unzip')
-
- cmd = ZIP_CMD % (file, todir)
- ret = rsutil.common.run_command (cmd)
-
- # Check error code
- if ret != 0:
- return -rsutil.common.EEXTRACT
-
- return rsutil.common.SUCCESS
+ rsutil.common.run_command(['unzip', file], todir)