if (not name and not pkgs) or (name and pkgs):
        raise CommandExecutionError('Name or packages must be specified.')
    elif name:
        pkgs = [name]