Menu

#67 mksiimage always reports a switch conflict

open
nobody
5
2003-10-31
2003-10-31
Anonymous
No

Using System Installer v1.03. The following command always fails:

mksiimage --Get --client <clientname> --name <imagename>

with the error:

--location conflicts with --Get
main::check_args called at /usr/bin/mksiimage line 93
........

This is apparently because a default value for --location is setup automatically prior to performing a reasonability check for --Get operation in the check_args subroutine. Moving the line:

if (!$config->location) {$config->location($config->pkgpath);} # Set the -location default.

to after the check:

if ($config->Get) { ..... }

resolves the problem.

Discussion