Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
args.validation, args.novalidation)
DS.pkginst = DS.get_setting('--install', 'options', 'install',
args.pkginst, args.nopkginst)
DS.pgpcheck = DS.get_setting('--pgpcheck', 'options', 'pgpcheck',
args.pgpcheck, args.nopgpcheck)
DS.confirm = DS.get_setting('--confirm', 'options', 'confirm',
args.confirm, args.noconfirm)
DS.deepclone = DS.get_setting('--deep', 'options', 'deepclone',
args.deepclone, args.shallowclone)
DS.colors_status = DS.get_setting('--colors', 'options', 'colors',
args.colors, args.nocolors)
DS.edit_pkgbuild = DS.get_setting('--edit-pkgbuild', 'options', 'edit_pkgbuild',
args.edit_pkgbuild, args.noedit_pkgbuild)
pkgnames = args.pkgnames
if DS.get_setting('--debug', 'options', 'debug',
args.debug, args.nodebug):
DS.debugmode(nochange=True)
DS.log.info('*** PKGBUILDer v{0}'.format(__version__))
DS.log.debug('*** debug output on.')
DS.log.info('Arguments parsed. {0}'.format(args.__dict__))
if 'VIRTUAL_ENV' in os.environ:
DS.log.error("virtualenv detected, exiting.")
DS.fancy_error(_("PKGBUILDer cannot work in a virtualenv, "
"exiting."))
exit(83)
if not DS.colors_status:
DS.colorsoff()
DS.log.debug('Colors turned off.')
argneg.add_argument(
'--build', action='store_true', dest='nofetch',
help=_('build (instead of fetching)'))
if source != 'AUTO':
args = parser.parse_args(source)
else:
args = parser.parse_args()
DS.pacman = DS.get_setting('-S', 'operations', 'tmpbuild',
args.pac, args.nopac)
DS.fetch = DS.get_setting('-F', 'operations', 'fetch',
args.fetch, args.nofetch)
DS.clean = DS.get_setting('--clean', 'options', 'clean',
args.clean, args.noclean)
DS.depcheck = DS.get_setting('--depcheck', 'options', 'depcheck',
args.depcheck, args.nodepcheck)
DS.vcsupgrade = DS.get_setting('--vcsupgrade', 'options', 'vcsupgrade',
args.vcsupgrade, args.novcsupgrade)
DS.validation = DS.get_setting('--validation', 'options', 'validation',
args.validation, args.novalidation)
DS.pkginst = DS.get_setting('--install', 'options', 'install',
args.pkginst, args.nopkginst)
DS.pgpcheck = DS.get_setting('--pgpcheck', 'options', 'pgpcheck',
args.pgpcheck, args.nopgpcheck)
DS.confirm = DS.get_setting('--confirm', 'options', 'confirm',
args.confirm, args.noconfirm)
DS.deepclone = DS.get_setting('--deep', 'options', 'deepclone',
args.deepclone, args.shallowclone)
DS.colors_status = DS.get_setting('--colors', 'options', 'colors',
args.colors, args.nocolors)
DS.edit_pkgbuild = DS.get_setting('--edit-pkgbuild', 'options', 'edit_pkgbuild',
'--notmp', action='store_true', dest='nopac',
help=_('don\'t build in /tmp'))
argneg.add_argument(
'--build', action='store_true', dest='nofetch',
help=_('build (instead of fetching)'))
if source != 'AUTO':
args = parser.parse_args(source)
else:
args = parser.parse_args()
DS.pacman = DS.get_setting('-S', 'operations', 'tmpbuild',
args.pac, args.nopac)
DS.fetch = DS.get_setting('-F', 'operations', 'fetch',
args.fetch, args.nofetch)
DS.clean = DS.get_setting('--clean', 'options', 'clean',
args.clean, args.noclean)
DS.depcheck = DS.get_setting('--depcheck', 'options', 'depcheck',
args.depcheck, args.nodepcheck)
DS.vcsupgrade = DS.get_setting('--vcsupgrade', 'options', 'vcsupgrade',
args.vcsupgrade, args.novcsupgrade)
DS.validation = DS.get_setting('--validation', 'options', 'validation',
args.validation, args.novalidation)
DS.pkginst = DS.get_setting('--install', 'options', 'install',
args.pkginst, args.nopkginst)
DS.pgpcheck = DS.get_setting('--pgpcheck', 'options', 'pgpcheck',
args.pgpcheck, args.nopgpcheck)
DS.confirm = DS.get_setting('--confirm', 'options', 'confirm',
args.confirm, args.noconfirm)
DS.deepclone = DS.get_setting('--deep', 'options', 'deepclone',
args.deepclone, args.shallowclone)
DS.colors_status = DS.get_setting('--colors', 'options', 'colors',
help=_('(dummy)'))
argneg = parser.add_argument_group(_('configuration overrides'))
argneg.add_argument(
'--notmp', action='store_true', dest='nopac',
help=_('don\'t build in /tmp'))
argneg.add_argument(
'--build', action='store_true', dest='nofetch',
help=_('build (instead of fetching)'))
if source != 'AUTO':
args = parser.parse_args(source)
else:
args = parser.parse_args()
DS.pacman = DS.get_setting('-S', 'operations', 'tmpbuild',
args.pac, args.nopac)
DS.fetch = DS.get_setting('-F', 'operations', 'fetch',
args.fetch, args.nofetch)
DS.clean = DS.get_setting('--clean', 'options', 'clean',
args.clean, args.noclean)
DS.depcheck = DS.get_setting('--depcheck', 'options', 'depcheck',
args.depcheck, args.nodepcheck)
DS.vcsupgrade = DS.get_setting('--vcsupgrade', 'options', 'vcsupgrade',
args.vcsupgrade, args.novcsupgrade)
DS.validation = DS.get_setting('--validation', 'options', 'validation',
args.validation, args.novalidation)
DS.pkginst = DS.get_setting('--install', 'options', 'install',
args.pkginst, args.nopkginst)
DS.pgpcheck = DS.get_setting('--pgpcheck', 'options', 'pgpcheck',
args.pgpcheck, args.nopgpcheck)
DS.confirm = DS.get_setting('--confirm', 'options', 'confirm',
else:
args = parser.parse_args()
DS.pacman = DS.get_setting('-S', 'operations', 'tmpbuild',
args.pac, args.nopac)
DS.fetch = DS.get_setting('-F', 'operations', 'fetch',
args.fetch, args.nofetch)
DS.clean = DS.get_setting('--clean', 'options', 'clean',
args.clean, args.noclean)
DS.depcheck = DS.get_setting('--depcheck', 'options', 'depcheck',
args.depcheck, args.nodepcheck)
DS.vcsupgrade = DS.get_setting('--vcsupgrade', 'options', 'vcsupgrade',
args.vcsupgrade, args.novcsupgrade)
DS.validation = DS.get_setting('--validation', 'options', 'validation',
args.validation, args.novalidation)
DS.pkginst = DS.get_setting('--install', 'options', 'install',
args.pkginst, args.nopkginst)
DS.pgpcheck = DS.get_setting('--pgpcheck', 'options', 'pgpcheck',
args.pgpcheck, args.nopgpcheck)
DS.confirm = DS.get_setting('--confirm', 'options', 'confirm',
args.confirm, args.noconfirm)
DS.deepclone = DS.get_setting('--deep', 'options', 'deepclone',
args.deepclone, args.shallowclone)
DS.colors_status = DS.get_setting('--colors', 'options', 'colors',
args.colors, args.nocolors)
DS.edit_pkgbuild = DS.get_setting('--edit-pkgbuild', 'options', 'edit_pkgbuild',
args.edit_pkgbuild, args.noedit_pkgbuild)
pkgnames = args.pkgnames
if DS.get_setting('--debug', 'options', 'debug',
args.debug, args.nodebug):
DS.debugmode(nochange=True)
args.clean, args.noclean)
DS.depcheck = DS.get_setting('--depcheck', 'options', 'depcheck',
args.depcheck, args.nodepcheck)
DS.vcsupgrade = DS.get_setting('--vcsupgrade', 'options', 'vcsupgrade',
args.vcsupgrade, args.novcsupgrade)
DS.validation = DS.get_setting('--validation', 'options', 'validation',
args.validation, args.novalidation)
DS.pkginst = DS.get_setting('--install', 'options', 'install',
args.pkginst, args.nopkginst)
DS.pgpcheck = DS.get_setting('--pgpcheck', 'options', 'pgpcheck',
args.pgpcheck, args.nopgpcheck)
DS.confirm = DS.get_setting('--confirm', 'options', 'confirm',
args.confirm, args.noconfirm)
DS.deepclone = DS.get_setting('--deep', 'options', 'deepclone',
args.deepclone, args.shallowclone)
DS.colors_status = DS.get_setting('--colors', 'options', 'colors',
args.colors, args.nocolors)
DS.edit_pkgbuild = DS.get_setting('--edit-pkgbuild', 'options', 'edit_pkgbuild',
args.edit_pkgbuild, args.noedit_pkgbuild)
pkgnames = args.pkgnames
if DS.get_setting('--debug', 'options', 'debug',
args.debug, args.nodebug):
DS.debugmode(nochange=True)
DS.log.info('*** PKGBUILDer v{0}'.format(__version__))
DS.log.debug('*** debug output on.')
DS.log.info('Arguments parsed. {0}'.format(args.__dict__))
if 'VIRTUAL_ENV' in os.environ:
DS.log.error("virtualenv detected, exiting.")
DS.fancy_error(_("PKGBUILDer cannot work in a virtualenv, "
help=_('build (instead of fetching)'))
if source != 'AUTO':
args = parser.parse_args(source)
else:
args = parser.parse_args()
DS.pacman = DS.get_setting('-S', 'operations', 'tmpbuild',
args.pac, args.nopac)
DS.fetch = DS.get_setting('-F', 'operations', 'fetch',
args.fetch, args.nofetch)
DS.clean = DS.get_setting('--clean', 'options', 'clean',
args.clean, args.noclean)
DS.depcheck = DS.get_setting('--depcheck', 'options', 'depcheck',
args.depcheck, args.nodepcheck)
DS.vcsupgrade = DS.get_setting('--vcsupgrade', 'options', 'vcsupgrade',
args.vcsupgrade, args.novcsupgrade)
DS.validation = DS.get_setting('--validation', 'options', 'validation',
args.validation, args.novalidation)
DS.pkginst = DS.get_setting('--install', 'options', 'install',
args.pkginst, args.nopkginst)
DS.pgpcheck = DS.get_setting('--pgpcheck', 'options', 'pgpcheck',
args.pgpcheck, args.nopgpcheck)
DS.confirm = DS.get_setting('--confirm', 'options', 'confirm',
args.confirm, args.noconfirm)
DS.deepclone = DS.get_setting('--deep', 'options', 'deepclone',
args.deepclone, args.shallowclone)
DS.colors_status = DS.get_setting('--colors', 'options', 'colors',
args.colors, args.nocolors)
DS.edit_pkgbuild = DS.get_setting('--edit-pkgbuild', 'options', 'edit_pkgbuild',
args.edit_pkgbuild, args.noedit_pkgbuild)
pkgnames = args.pkgnames
args.fetch, args.nofetch)
DS.clean = DS.get_setting('--clean', 'options', 'clean',
args.clean, args.noclean)
DS.depcheck = DS.get_setting('--depcheck', 'options', 'depcheck',
args.depcheck, args.nodepcheck)
DS.vcsupgrade = DS.get_setting('--vcsupgrade', 'options', 'vcsupgrade',
args.vcsupgrade, args.novcsupgrade)
DS.validation = DS.get_setting('--validation', 'options', 'validation',
args.validation, args.novalidation)
DS.pkginst = DS.get_setting('--install', 'options', 'install',
args.pkginst, args.nopkginst)
DS.pgpcheck = DS.get_setting('--pgpcheck', 'options', 'pgpcheck',
args.pgpcheck, args.nopgpcheck)
DS.confirm = DS.get_setting('--confirm', 'options', 'confirm',
args.confirm, args.noconfirm)
DS.deepclone = DS.get_setting('--deep', 'options', 'deepclone',
args.deepclone, args.shallowclone)
DS.colors_status = DS.get_setting('--colors', 'options', 'colors',
args.colors, args.nocolors)
DS.edit_pkgbuild = DS.get_setting('--edit-pkgbuild', 'options', 'edit_pkgbuild',
args.edit_pkgbuild, args.noedit_pkgbuild)
pkgnames = args.pkgnames
if DS.get_setting('--debug', 'options', 'debug',
args.debug, args.nodebug):
DS.debugmode(nochange=True)
DS.log.info('*** PKGBUILDer v{0}'.format(__version__))
DS.log.debug('*** debug output on.')
DS.log.info('Arguments parsed. {0}'.format(args.__dict__))
if 'VIRTUAL_ENV' in os.environ: