pkgbuilder
Advanced tools
+6
-3
@@ -6,6 +6,6 @@ ===================== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -51,2 +51,5 @@ .. index:: CHANGELOG | ||
| 4.3.0 | ||
| * Support for editing PKGBUILDs (``--edit-pkgbuild`` option) | ||
| 4.2.18 | ||
@@ -53,0 +56,0 @@ * Add a ``paccommand`` option to the INI file. |
+3
-3
@@ -5,6 +5,6 @@ ====================== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -11,0 +11,0 @@ .. index:: AUR; RPC |
+3
-3
@@ -6,6 +6,6 @@ ============ | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -12,0 +12,0 @@ .. index:: build |
@@ -6,6 +6,6 @@ ===================== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -51,2 +51,5 @@ .. index:: CHANGELOG | ||
| 4.3.0 | ||
| * Support for editing PKGBUILDs (``--edit-pkgbuild`` option) | ||
| 4.2.18 | ||
@@ -53,0 +56,0 @@ * Add a ``paccommand`` option to the INI file. |
+3
-3
@@ -44,3 +44,3 @@ # -*- coding: utf-8 -*- | ||
| project = u'PKGBUILDer' | ||
| copyright = u'2011-2018, Chris Warrick' | ||
| copyright = u'2011-2019, Chris Warrick' | ||
@@ -52,5 +52,5 @@ # The version info for the project you're documenting, acts as replacement for | ||
| # The short X.Y version. | ||
| version = '4.2.18' | ||
| version = '4.3.0' | ||
| # The full version, including alpha/beta/rc tags. | ||
| release = '4.2.18' | ||
| release = '4.3.0' | ||
@@ -57,0 +57,0 @@ # The language for content autogenerated by Sphinx. Refer to documentation |
@@ -5,3 +5,3 @@ ============================== | ||
| :Info: Those are the contribution rules for PKGBUILDer. | ||
| :Copyright: © 2012-2018, Chris Warrick. | ||
| :Copyright: © 2012-2019, Chris Warrick. | ||
| :License: 3-clause BSD | ||
@@ -8,0 +8,0 @@ |
@@ -6,6 +6,6 @@ ======================== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -12,0 +12,0 @@ .. index:: Exceptions |
+3
-3
@@ -6,8 +6,8 @@ ================================== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
| .. index:: LICENSE | ||
| Copyright © 2011-2018, Chris Warrick. | ||
| Copyright © 2011-2019, Chris Warrick. | ||
| All rights reserved. | ||
@@ -14,0 +14,0 @@ |
+3
-3
@@ -5,6 +5,6 @@ =============== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -11,0 +11,0 @@ .. index:: main |
+3
-3
@@ -6,6 +6,6 @@ ======================================================== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -12,0 +12,0 @@ .. index:: Package |
+3
-3
@@ -7,6 +7,6 @@ ========= | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or Appendix B.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
| :Wrapper Version: 0.5.6 | ||
@@ -13,0 +13,0 @@ :Manual section: 8 |
+3
-3
@@ -6,6 +6,6 @@ ======================== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -12,0 +12,0 @@ .. module: pbds |
+14
-3
@@ -7,6 +7,6 @@ ========== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or Appendix B.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
| :Manual section: 8 | ||
@@ -129,2 +129,5 @@ :Manual group: PKGBUILDer manual | ||
| **--edit-pkgbuild** | ||
| Offer to edit PKGBUILDs before they are installed. | ||
| **--ignore [PACKAGE PACKAGE ...]** | ||
@@ -137,2 +140,10 @@ Ignore a package upgrade (can be used more than once, or use commas -- | ||
| SECURITY AND EDITING PKGBUILDs | ||
| ============================== | ||
| By default, PKGBUILDer strives to be the no-questions-asked package manager. | ||
| This means that all packages are built immediately, without any confirmations. | ||
| The behavior can be overridden with the ``--edit-pkgbuild`` command-line | ||
| option, or with ``edit=pkgbuild=true`` in PKGBUILDer’s config file. | ||
| EXAMPLES | ||
@@ -139,0 +150,0 @@ ======== |
+18
-3
@@ -6,4 +6,4 @@ ===================================================== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -48,5 +48,20 @@ .. index: README | ||
| CONFIGURATION | ||
| ------------- | ||
| PKGBUILDer supports per-user configuration, in the file | ||
| ~/.config/kwpolska/pkgbuilder/pkgbuilder.ini. It can also be configured on a | ||
| per-usage basis via command-line arguments. | ||
| SECURITY AND EDITING PKGBUILDs | ||
| ------------------------------ | ||
| By default, PKGBUILDer strives to be the no-questions-asked package manager. | ||
| This means that all packages are built immediately, without any confirmations. | ||
| The behavior can be overridden with the ``--edit-pkgbuild`` command-line | ||
| option, or with ``edit=pkgbuild=true`` in PKGBUILDer’s config file. | ||
| COPYRIGHT | ||
| --------- | ||
| Copyright © 2011-2018, Chris Warrick. | ||
| Copyright © 2011-2019, Chris Warrick. | ||
| All rights reserved. | ||
@@ -53,0 +68,0 @@ |
@@ -5,6 +5,6 @@ ========================= | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -11,0 +11,0 @@ .. index:: sample scripts |
@@ -6,6 +6,6 @@ ============ | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -12,0 +12,0 @@ .. index:: transaction |
+3
-3
@@ -6,6 +6,6 @@ ==================== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -12,0 +12,0 @@ .. index:: UI |
+3
-3
@@ -6,6 +6,6 @@ ============== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -12,0 +12,0 @@ .. index:: upgrade |
+3
-3
@@ -6,6 +6,6 @@ ============ | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -12,0 +12,0 @@ .. index:: utils |
+3
-3
@@ -5,6 +5,6 @@ ========= | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.) | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
| :PBWrapper Version: 0.2.3 | ||
@@ -11,0 +11,0 @@ |
+1
-1
@@ -1,2 +0,2 @@ | ||
| Copyright © 2011-2018, Chris Warrick. | ||
| Copyright © 2011-2019, Chris Warrick. | ||
| All rights reserved. | ||
@@ -3,0 +3,0 @@ |
+20
-5
| Metadata-Version: 1.1 | ||
| Name: pkgbuilder | ||
| Version: 4.2.18 | ||
| Version: 4.3.0 | ||
| Summary: An AUR helper (and library) in Python 3. | ||
@@ -14,4 +14,4 @@ Home-page: https://github.com/Kwpolska/pkgbuilder | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -56,5 +56,20 @@ .. index: README | ||
| CONFIGURATION | ||
| ------------- | ||
| PKGBUILDer supports per-user configuration, in the file | ||
| ~/.config/kwpolska/pkgbuilder/pkgbuilder.ini. It can also be configured on a | ||
| per-usage basis via command-line arguments. | ||
| SECURITY AND EDITING PKGBUILDs | ||
| ------------------------------ | ||
| By default, PKGBUILDer strives to be the no-questions-asked package manager. | ||
| This means that all packages are built immediately, without any confirmations. | ||
| The behavior can be overridden with the ``--edit-pkgbuild`` command-line | ||
| option, or with ``edit=pkgbuild=true`` in PKGBUILDer’s config file. | ||
| COPYRIGHT | ||
| --------- | ||
| Copyright © 2011-2018, Chris Warrick. | ||
| Copyright © 2011-2019, Chris Warrick. | ||
| All rights reserved. | ||
@@ -101,5 +116,5 @@ | ||
| Classifier: Programming Language :: Python :: 3 | ||
| Classifier: Programming Language :: Python :: 3.6 | ||
| Classifier: Programming Language :: Python :: 3.7 | ||
| Classifier: Topic :: System | ||
| Classifier: Topic :: System :: Archiving :: Packaging | ||
| Classifier: Topic :: Utilities |
| Metadata-Version: 1.1 | ||
| Name: pkgbuilder | ||
| Version: 4.2.18 | ||
| Version: 4.3.0 | ||
| Summary: An AUR helper (and library) in Python 3. | ||
@@ -14,4 +14,4 @@ Home-page: https://github.com/Kwpolska/pkgbuilder | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -56,5 +56,20 @@ .. index: README | ||
| CONFIGURATION | ||
| ------------- | ||
| PKGBUILDer supports per-user configuration, in the file | ||
| ~/.config/kwpolska/pkgbuilder/pkgbuilder.ini. It can also be configured on a | ||
| per-usage basis via command-line arguments. | ||
| SECURITY AND EDITING PKGBUILDs | ||
| ------------------------------ | ||
| By default, PKGBUILDer strives to be the no-questions-asked package manager. | ||
| This means that all packages are built immediately, without any confirmations. | ||
| The behavior can be overridden with the ``--edit-pkgbuild`` command-line | ||
| option, or with ``edit=pkgbuild=true`` in PKGBUILDer’s config file. | ||
| COPYRIGHT | ||
| --------- | ||
| Copyright © 2011-2018, Chris Warrick. | ||
| Copyright © 2011-2019, Chris Warrick. | ||
| All rights reserved. | ||
@@ -101,5 +116,5 @@ | ||
| Classifier: Programming Language :: Python :: 3 | ||
| Classifier: Programming Language :: Python :: 3.6 | ||
| Classifier: Programming Language :: Python :: 3.7 | ||
| Classifier: Topic :: System | ||
| Classifier: Topic :: System :: Archiving :: Packaging | ||
| Classifier: Topic :: Utilities |
| # -*- encoding: utf-8 -*- | ||
| # PKGBUILDer v4.2.18 | ||
| # PKGBUILDer v4.3.0 | ||
| # An AUR helper (and library) in Python 3. | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # All rights reserved. | ||
@@ -38,3 +38,3 @@ # | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE). | ||
@@ -49,3 +49,3 @@ """ | ||
| __title__ = 'PKGBUILDer' | ||
| __version__ = '4.2.18' | ||
| __version__ = '4.3.0' | ||
| __author__ = 'Chris Warrick' | ||
@@ -52,0 +52,0 @@ __license__ = '3-clause BSD' |
| # -*- encoding: utf-8 -*- | ||
| # PKGBUILDer v4.2.18 | ||
| # PKGBUILDer v4.3.0 | ||
| # An AUR helper (and library) in Python 3. | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # See /LICENSE for licensing information. | ||
@@ -10,3 +10,3 @@ | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE). | ||
@@ -99,2 +99,8 @@ """ | ||
| help=_('don\'t display debug messages (default)')) | ||
| argopt.add_argument( | ||
| '--edit-pkgbuild', action='store_true', dest='edit_pkgbuild', | ||
| help=_('edit the PKGBUILD')) | ||
| argopt.add_argument( | ||
| '--noedit-pkgbuild', action='store_true', dest='noedit_pkgbuild', | ||
| help=_("don't edit the PKGBUILD (default)")) | ||
@@ -194,2 +200,4 @@ argopt.add_argument( | ||
| args.colors, args.nocolors) | ||
| DS.edit_pkgbuild = DS.get_setting('--edit-pkgbuild', 'options', 'edit_pkgbuild', | ||
| args.edit_pkgbuild, args.noedit_pkgbuild) | ||
| pkgnames = args.pkgnames | ||
@@ -352,3 +360,4 @@ | ||
| out = pkgbuilder.build.auto_build(pkgname, DS.depcheck, | ||
| DS.pkginst, pkgnames) | ||
| DS.pkginst, pkgnames, | ||
| DS.edit_pkgbuild) | ||
| if out: | ||
@@ -355,0 +364,0 @@ toinstall += out[1][0] |
| # -*- encoding: utf-8 -*- | ||
| # PKGBUILDer v4.2.18 | ||
| # PKGBUILDer v4.3.0 | ||
| # An AUR helper (and library) in Python 3. | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # See /LICENSE for licensing information. | ||
@@ -10,3 +10,3 @@ | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE). | ||
@@ -13,0 +13,0 @@ """ |
+40
-12
| # -*- encoding: utf-8 -*- | ||
| # PKGBUILDer v4.2.18 | ||
| # PKGBUILDer v4.3.0 | ||
| # An AUR helper (and library) in Python 3. | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # See /LICENSE for licensing information. | ||
@@ -10,3 +10,3 @@ | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE). | ||
@@ -35,5 +35,9 @@ """ | ||
| RES_ABORT = 72335 | ||
| RES_EXISTING = 72336 | ||
| RES_AURDEPS = 72337 | ||
| def auto_build(pkgname, performdepcheck=True, | ||
| pkginstall=True, completelist=None): | ||
| pkginstall=True, completelist=None, pkgbuild_edit=False): | ||
| """A function that builds everything, that should be used by everyone. | ||
@@ -54,3 +58,3 @@ | ||
| completelist = [] | ||
| build_result = build_runner(pkgname, performdepcheck, pkginstall) | ||
| build_result = build_runner(pkgname, performdepcheck, pkginstall, pkgbuild_edit) | ||
| try: | ||
@@ -61,6 +65,8 @@ if build_result[0] == 0: | ||
| raise pkgbuilder.exceptions.MakepkgError(build_result[0]) | ||
| elif build_result[0] == 72336: | ||
| elif build_result[0] == RES_ABORT: | ||
| DS.fancy_warning(_('Installation aborted by user.')) | ||
| elif build_result[0] == RES_EXISTING: | ||
| # existing package, do nothing | ||
| pass | ||
| elif build_result[0] == 72337: | ||
| elif build_result[0] == RES_AURDEPS: | ||
| DS.fancy_warning(_('Building more AUR packages is required.')) | ||
@@ -146,3 +152,3 @@ if not pkginstall: | ||
| os.chdir(pkgbase) | ||
| subprocess.check_call(['git', 'pull']) | ||
| subprocess.check_call(['git', 'pull', '--no-rebase']) | ||
| except subprocess.CalledProcessError as e: | ||
@@ -419,4 +425,20 @@ raise pkgbuilder.exceptions.CloneError(e.returncode) | ||
| def edit_pkgbuild(pkgname): | ||
| """Edit a PKGBUILD interactively. Returns False if user aborts install.""" | ||
| yesno = DS.fancy_msg_prompt(_('Edit PKGBUILD of {0}? [Y/n] ').format(pkgname)) | ||
| if yesno.lower().strip().startswith('y') or not yesno.strip(): | ||
| if os.environ['EDITOR']: | ||
| subprocess.call([os.environ['EDITOR'], './PKGBUILD']) | ||
| else: | ||
| subprocess.call(['nano', './PKGBUILD']) | ||
| yesno = DS.fancy_msg_prompt(_('Proceed with installation? [Y/n] ')) | ||
| if yesno.lower().strip().startswith('n'): | ||
| return False | ||
| return True | ||
| def build_runner(pkgname, performdepcheck=True, | ||
| pkginstall=True): | ||
| pkginstall=True, pkgbuild_edit=False): | ||
| """A build function, which actually links to others. | ||
@@ -465,3 +487,3 @@ | ||
| existing = ([], []) | ||
| return [72336, existing] | ||
| return [RES_EXISTING, existing] | ||
| try: | ||
@@ -490,3 +512,3 @@ os.chdir('./{0}'.format(pkg.name)) | ||
| existing = ([], []) | ||
| return [72336, existing] | ||
| return [RES_EXISTING, existing] | ||
| DS.fancy_msg(_('Cloning the git repository...')) | ||
@@ -520,4 +542,10 @@ clone(pkg.packagebase) | ||
| os.chdir('../') | ||
| return [72337, aurbuild] | ||
| return [RES_AURDEPS, aurbuild] | ||
| # Edit the pkgbuild | ||
| if pkgbuild_edit: | ||
| continue_install = edit_pkgbuild(pkg.packagebase) | ||
| if not continue_install: | ||
| return [RES_ABORT, ([], [])] | ||
| mpparams = ['makepkg', '-sf'] | ||
@@ -524,0 +552,0 @@ |
| # -*- encoding: utf-8 -*- | ||
| # PKGBUILDer v4.2.18 | ||
| # PKGBUILDer v4.3.0 | ||
| # An AUR helper (and library) in Python 3. | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # See /LICENSE for licensing information. | ||
@@ -10,3 +10,3 @@ | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE). | ||
@@ -13,0 +13,0 @@ """ |
| # -*- encoding: utf-8 -*- | ||
| # PKGBUILDer v4.2.18 | ||
| # PKGBUILDer v4.3.0 | ||
| # An AUR helper (and library) in Python 3. | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # See /LICENSE for licensing information. | ||
@@ -10,3 +10,3 @@ | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE). | ||
@@ -13,0 +13,0 @@ """ |
+14
-3
| # -*- encoding: utf-8 -*- | ||
| # PKGBUILDer v4.2.18 | ||
| # PKGBUILDer v4.3.0 | ||
| # An AUR helper (and library) in Python 3. | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # See /LICENSE for licensing information. | ||
@@ -10,3 +10,3 @@ | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE). | ||
@@ -58,2 +58,3 @@ """ | ||
| wrapperinttext = _('Interrupt signal received\n') | ||
| edit_pkgbuild = False | ||
@@ -256,2 +257,12 @@ # STUFF NOT TO BE CHANGED BY HUMAN BEINGS. EVER. | ||
| def fancy_msg_prompt(self, text): | ||
| """Display main messages that ask a question.""" | ||
| sys.stderr.write(self.colors['green'] + self.mp1 + '>' + | ||
| self.colors['all_off'] + | ||
| self.colors['bold'] + ' ' + text + | ||
| self.colors['all_off']) | ||
| sys.stderr.flush() | ||
| self.log.info('({0:<20}) {1} \n'.format('fancy_msg', text)) | ||
| return input() | ||
| def fancy_msg2(self, text): | ||
@@ -258,0 +269,0 @@ """Display sub-messages.""" |
| # -*- encoding: utf-8 -*- | ||
| # PKGBUILDer v4.2.18 | ||
| # PKGBUILDer v4.3.0 | ||
| # An AUR helper (and library) in Python 3. | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # See /LICENSE for licensing information. | ||
@@ -12,3 +12,3 @@ | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE). | ||
@@ -15,0 +15,0 @@ """ |
+3
-3
| # -*- encoding: utf-8 -*- | ||
| # PKGBUILDer v4.2.18 | ||
| # PKGBUILDer v4.3.0 | ||
| # An AUR helper (and library) in Python 3. | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # See /LICENSE for licensing information. | ||
@@ -10,3 +10,3 @@ | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE). | ||
@@ -13,0 +13,0 @@ """ |
| # -*- encoding: utf-8 -*- | ||
| # PKGBUILDer v4.2.18 | ||
| # PKGBUILDer v4.3.0 | ||
| # An AUR helper (and library) in Python 3. | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # See /LICENSE for licensing information. | ||
@@ -10,3 +10,3 @@ | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE). | ||
@@ -13,0 +13,0 @@ """ |
| # -*- encoding: utf-8 -*- | ||
| # PKGBUILDer v4.2.18 | ||
| # PKGBUILDer v4.3.0 | ||
| # An AUR helper (and library) in Python 3. | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # See /LICENSE for licensing information. | ||
@@ -10,3 +10,3 @@ | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE). | ||
@@ -13,0 +13,0 @@ """ |
| # -*- encoding: utf-8 -*- | ||
| # PBWrapper v0.5.0 | ||
| # PKGBUILDer v4.2.18 | ||
| # PKGBUILDer v4.3.0 | ||
| # An AUR helper (and library) in Python 3. | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # See /LICENSE for licensing information. | ||
@@ -11,3 +11,3 @@ | ||
| :Copyright: © 2011-2018, Chris Warrick. | ||
| :Copyright: © 2011-2019, Chris Warrick. | ||
| :License: BSD (see /LICENSE). | ||
@@ -127,3 +127,4 @@ """ | ||
| 'novalidation', 'install', 'buildonly', 'pgpcheck', | ||
| 'skippgpcheck', 'deep', 'shallow', 'noclean', 'nodebug'] | ||
| 'skippgpcheck', 'deep', 'shallow', 'noclean', 'nodebug', | ||
| 'noedit-pkgbuild', 'edit-pkgbuild'] | ||
@@ -130,0 +131,0 @@ commonshort = ['S', 'd', 'i', 's', 'v', 'w'] |
+18
-3
@@ -6,4 +6,4 @@ ===================================================== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -48,5 +48,20 @@ .. index: README | ||
| CONFIGURATION | ||
| ------------- | ||
| PKGBUILDer supports per-user configuration, in the file | ||
| ~/.config/kwpolska/pkgbuilder/pkgbuilder.ini. It can also be configured on a | ||
| per-usage basis via command-line arguments. | ||
| SECURITY AND EDITING PKGBUILDs | ||
| ------------------------------ | ||
| By default, PKGBUILDer strives to be the no-questions-asked package manager. | ||
| This means that all packages are built immediately, without any confirmations. | ||
| The behavior can be overridden with the ``--edit-pkgbuild`` command-line | ||
| option, or with ``edit=pkgbuild=true`` in PKGBUILDer’s config file. | ||
| COPYRIGHT | ||
| --------- | ||
| Copyright © 2011-2018, Chris Warrick. | ||
| Copyright © 2011-2019, Chris Warrick. | ||
| All rights reserved. | ||
@@ -53,0 +68,0 @@ |
+18
-3
@@ -6,4 +6,4 @@ ===================================================== | ||
| :Author: Chris Warrick <chris@chriswarrick.com> | ||
| :Date: 2018-07-31 | ||
| :Version: 4.2.18 | ||
| :Date: 2019-01-12 | ||
| :Version: 4.3.0 | ||
@@ -48,5 +48,20 @@ .. index: README | ||
| CONFIGURATION | ||
| ------------- | ||
| PKGBUILDer supports per-user configuration, in the file | ||
| ~/.config/kwpolska/pkgbuilder/pkgbuilder.ini. It can also be configured on a | ||
| per-usage basis via command-line arguments. | ||
| SECURITY AND EDITING PKGBUILDs | ||
| ------------------------------ | ||
| By default, PKGBUILDer strives to be the no-questions-asked package manager. | ||
| This means that all packages are built immediately, without any confirmations. | ||
| The behavior can be overridden with the ``--edit-pkgbuild`` command-line | ||
| option, or with ``edit=pkgbuild=true`` in PKGBUILDer’s config file. | ||
| COPYRIGHT | ||
| --------- | ||
| Copyright © 2011-2018, Chris Warrick. | ||
| Copyright © 2011-2019, Chris Warrick. | ||
| All rights reserved. | ||
@@ -53,0 +68,0 @@ |
@@ -5,3 +5,3 @@ #!/usr/bin/python3 | ||
| # Part of PKGBUILDer Sample Scripts | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # All rights reserved. | ||
@@ -8,0 +8,0 @@ # |
@@ -5,3 +5,3 @@ #!/usr/bin/python3 | ||
| # Part of PKGBUILDer Sample Scripts | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # All rights reserved. | ||
@@ -8,0 +8,0 @@ # |
@@ -5,3 +5,3 @@ #!/usr/bin/python3 | ||
| # Part of PKGBUILDer Sample Scripts | ||
| # Copyright © 2011-2018, Chris Warrick. | ||
| # Copyright © 2011-2019, Chris Warrick. | ||
| # All rights reserved. | ||
@@ -8,0 +8,0 @@ # |
+2
-2
@@ -21,3 +21,3 @@ #!/usr/bin/env python3 | ||
| setup(name='pkgbuilder', | ||
| version='4.2.18', | ||
| version='4.3.0', | ||
| description='An AUR helper (and library) in Python 3.', | ||
@@ -43,3 +43,3 @@ keywords='arch pkgbuild', | ||
| 'Programming Language :: Python :: 3', | ||
| 'Programming Language :: Python :: 3.6', | ||
| 'Programming Language :: Python :: 3.7', | ||
| 'Topic :: System', | ||
@@ -46,0 +46,0 @@ 'Topic :: System :: Archiving :: Packaging', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
324468
5.43%3270
1.3%