Skip to content

Commit

Permalink
v2.1.3.2: minor fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Kwpolska <[email protected]>
  • Loading branch information
Kwpolska committed Aug 8, 2012
1 parent 4f9c8c1 commit f8b9964
Show file tree
Hide file tree
Showing 29 changed files with 60 additions and 59 deletions.
4 changes: 2 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maintainer: Kwpolska <[email protected]>
pkgname=pkgbuilder
pkgver=2.1.3.1
pkgver=2.1.3.2
pkgrel=1
pkgdesc='A Python AUR helper/library.'
arch=('any')
Expand All @@ -9,7 +9,7 @@ license=('BSD')
depends=('python' 'pyalpm>=0.5.1-1' 'python-pyparsing' 'python-requests')
options=(!emptydirs)
source=("http://pypi.python.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('f438fa19e0a82e2cfd7c204769c6acd6')
md5sums=('53cb7199aa34496a3a538297b5c9c5a8')

package() {
cd "${srcdir}/${pkgname}-${pkgver}"
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ README for PKGBUILDer
=====================
:Info: This is the README file for PKGBUILDer.
:Author: Kwpolska <[email protected]>
:Date: 2012-08-06
:Version: 2.1.3.1
:Date: 2012-08-08
:Version: 2.1.3.2

PKGBUILDer. A Python AUR helper/library.
=========================================
Expand Down
Binary file added dist/pkgbuilder-2.1.3.2.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Appendix C. Changelog
=====================
:Info: This is a partial changelog for PKGBUILDer.
:Author: Kwpolska <[email protected]>
:Date: 2012-08-06
:Version: 2.1.3.1
:Date: 2012-08-08
:Version: 2.1.3.2

.. index:: CHANGELOG

Expand Down
4 changes: 2 additions & 2 deletions docs/LICENSE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Appendix B. License for PKGBUILDer
==================================
:Info: This is an appendix to the PKGBUILDer documentation.
:Author: Kwpolska <[email protected]>
:Date: 2012-08-06
:Version: 2.1.3.1
:Date: 2012-08-08
:Version: 2.1.3.2

.. index:: LICENSE

Expand Down
4 changes: 2 additions & 2 deletions docs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ README for PKGBUILDer
=====================
:Info: This is the README file for PKGBUILDer.
:Author: Kwpolska <[email protected]>
:Date: 2012-08-06
:Version: 2.1.3.1
:Date: 2012-08-08
:Version: 2.1.3.2

.. index: README
Expand Down
4 changes: 2 additions & 2 deletions docs/aur.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ aur module (AUR class)
======================
:Author: Kwpolska
:Copyright: See Appendix B.
:Date: 2012-08-06
:Version: 2.1.3.1
:Date: 2012-08-08
:Version: 2.1.3.2

.. module:: aur

Expand Down
4 changes: 2 additions & 2 deletions docs/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ build module (Build class)
==========================
:Author: Kwpolska
:Copyright: See Appendix B.
:Date: 2012-08-06
:Version: 2.1.3.1
:Date: 2012-08-08
:Version: 2.1.3.2

.. module:: build

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# The short X.Y version.
version = '2.1.2'
# The full version, including alpha/beta/rc tags.
release = '2.1.3.1'
release = '2.1.3.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
4 changes: 2 additions & 2 deletions docs/main.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ main module
===========
:Author: Kwpolska
:Copyright: See Appendix B.
:Date: 2012-08-06
:Version: 2.1.3.1
:Date: 2012-08-08
:Version: 2.1.3.2

.. index:: main
.. versionadded:: 2.1.3.0
Expand Down
4 changes: 2 additions & 2 deletions docs/messagecodes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Appendix A. PKGBUILDer message codess list
==========================================
:Info: This is an appendix to the PKGBUILDer documentation.
:Author: Kwpolska <[email protected]>
:Date: 2012-08-06
:Version: 2.1.3.1
:Date: 2012-08-08
:Version: 2.1.3.2

.. index:: Message Codes

Expand Down
4 changes: 2 additions & 2 deletions docs/pbds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ pbds module (PBDS class)

:Author: Kwpolska
:Copyright: See Appendix B.
:Date: 2012-08-06
:Version: 2.1.3.1
:Date: 2012-08-08
:Version: 2.1.3.2

.. module: pbds
Expand Down
Binary file modified docs/pkgbuilder.8.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/pkgbuilder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ PKGBUILDer

:Author: Kwpolska <[email protected]>
:Copyright: See Appendix B.
:Date: 2012-08-06
:Version: 2.1.3.1
:Date: 2012-08-08
:Version: 2.1.3.2
:Manual section: 8
:Manual group: PKGBUILDer manual

Expand Down
4 changes: 2 additions & 2 deletions docs/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ upgrade module (Upgrade class)

:Author: Kwpolska
:Copyright: See Appendix B.
:Date: 2012-08-06
:Version: 2.1.3.1
:Date: 2012-08-08
:Version: 2.1.3.2

.. module:: upgrade

Expand Down
4 changes: 2 additions & 2 deletions docs/utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ utils module (Utils class)

:Author: Kwpolska
:Copyright: See Appendix B.
:Date: 2012-08-06
:Version: 2.1.3.1
:Date: 2012-08-08
:Version: 2.1.3.2

.. module:: utils

Expand Down
Binary file modified locale/en/LC_MESSAGES/pkgbuilder.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion locale/en/LC_MESSAGES/pkgbuilder.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: $version\n"
"Report-Msgid-Bugs-To: Kwpolska <[email protected]>\n"
"POT-Creation-Date: 2012-08-06 18:09+0200\n"
"POT-Creation-Date: 2012-08-08 14:32+0200\n"
"PO-Revision-Date: 2012-07-27 13:44+0100\n"
"Last-Translator: Kwpolska <[email protected]>\n"
"Language-Team: Kwpolska <[email protected]>\n"
Expand Down
Binary file modified locale/pl/LC_MESSAGES/pkgbuilder.mo
Binary file not shown.
2 changes: 1 addition & 1 deletion locale/pl/LC_MESSAGES/pkgbuilder.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: $version\n"
"Report-Msgid-Bugs-To: Kwpolska <[email protected]>\n"
"POT-Creation-Date: 2012-08-06 18:09+0200\n"
"POT-Creation-Date: 2012-08-08 14:32+0200\n"
"PO-Revision-Date: 2012-07-27 14:20+0100\n"
"Last-Translator: Kwpolska <[email protected]>\n"
"Language-Team: Kwpolska <[email protected]>\n"
Expand Down
6 changes: 3 additions & 3 deletions messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 2.1.3.1\n"
"Project-Id-Version: 2.1.3.2\n"
"Report-Msgid-Bugs-To: Kwpolska <[email protected]>\n"
"POT-Creation-Date: 2012-08-06 18:09+0200\n"
"PO-Revision-Date: 2012-08-06 18:09+0200\n"
"POT-Creation-Date: 2012-08-08 14:32+0200\n"
"PO-Revision-Date: 2012-08-08 14:32+0200\n"
"Last-Translator: Kwpolska <[email protected]>\n"
"Language-Team: Kwpolska <[email protected]>\n"
"Language: en\n"
Expand Down
4 changes: 2 additions & 2 deletions pkgbuilder/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python3
# -*- encoding: utf-8 -*-
# PKGBUILDer v2.1.3.1
# PKGBUILDer v2.1.3.2
# An AUR helper/library.
# Copyright (C) 2011-2012, Kwpolska.
# All rights reserved.
Expand Down Expand Up @@ -44,7 +44,7 @@
"""

__title__ = 'PKGBUILDer'
__version__ = '2.1.3.1'
__version__ = '2.1.3.2'
__docformat__ = 'restructuredtext en'
__author__ = 'Kwpolska'
__license__ = 'BSD'
Expand Down
20 changes: 10 additions & 10 deletions pkgbuilder/aur.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python3
# -*- encoding: utf-8 -*-
# PKGBUILDer v2.1.3.1
# PKGBUILDer v2.1.3.2
# An AUR helper/library.
# Copyright (C) 2011-2012, Kwpolska.
# See /LICENSE for licensing information.
Expand All @@ -16,7 +16,7 @@
:License: BSD (see /LICENSE).
"""

from . import DS, T, _, PBError
from . import _, PBError
import requests
import json

Expand Down Expand Up @@ -46,12 +46,12 @@ def jsonreq(self, rtype, arg, prot='http'):
:Returns: JSON data from the API.
:Exceptions: requests.exceptions.*, PBError.
:Message codes: ERR1001."""
r = requests.get(self.rpc.format(prot, rtype, arg))
if r.status_code != 200:
req = requests.get(self.rpc.format(prot, rtype, arg))
if req.status_code != 200:
raise PBError(_('[ERR1001] AUR: HTTP Error {0}').format(
r.status_code))
req.status_code))

return r.text
return req.text

def jsonmultiinfo(self, args, prot='http'):
"""Makes a multiinfo request and returns plain JSON data.
Expand All @@ -63,12 +63,12 @@ def jsonmultiinfo(self, args, prot='http'):
:Exceptions: requests.exceptions.*, PBError.
:Message codes: ERR1001."""
urlargs = '&arg[]=' + '&arg[]='.join(args)
r = requests.get(self.mrpc.format(prot, urlargs))
if r.status_code != 200:
req = requests.get(self.mrpc.format(prot, urlargs))
if req.status_code != 200:
raise PBError(_('[ERR1001] AUR: HTTP Error {0}').format(
r.status_code))
req.status_code))

return r.text
return req.text

def request(self, rtype, arg, prot='http'):
"""Makes a request.
Expand Down
14 changes: 7 additions & 7 deletions pkgbuilder/build.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python3
# -*- encoding: utf-8 -*-
# PKGBUILDer v2.1.3.1
# PKGBUILDer v2.1.3.2
# An AUR helper/library.
# Copyright (C) 2011-2012, Kwpolska.
# See /LICENSE for licensing information.
Expand All @@ -16,7 +16,7 @@
:License: BSD (see /LICENSE).
"""

from . import DS, T, _, PBError
from . import DS, _, PBError
from .utils import Utils
from pyparsing import OneOrMore, Word
import os
Expand Down Expand Up @@ -68,8 +68,8 @@ def auto_build(self, pkgname, validate=True, performdepcheck=True,
os.chdir('../')
if validate:
# check if installed
H = pycman.config.init_with_config('/etc/pacman.conf')
localdb = H.get_localdb()
pyc = pycman.config.init_with_config('/etc/pacman.conf')
localdb = pyc.get_localdb()
pkg = localdb.get_pkg(pkgname)
aurversion = self.utils.info(pkgname)['Version']
if pkg is None:
Expand Down Expand Up @@ -192,10 +192,10 @@ def depcheck(self, depends):
return {}
else:
parseddeps = {}
H = pycman.config.init_with_config('/etc/pacman.conf')
localpkgs = H.get_localdb().pkgcache
pyc = pycman.config.init_with_config('/etc/pacman.conf')
localpkgs = pyc.get_localdb().pkgcache
syncpkgs = []
for j in [i.pkgcache for i in H.get_syncdbs()]:
for j in [i.pkgcache for i in pyc.get_syncdbs()]:
syncpkgs.append(j)
syncpkgs = functools.reduce(lambda x, y: x + y, syncpkgs)
for dep in depends:
Expand Down
5 changes: 3 additions & 2 deletions pkgbuilder/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python3
# -*- encoding: utf-8 -*-
# PKGBUILDer v2.1.3.1
# PKGBUILDer v2.1.3.2
# An AUR helper/library.
# Copyright (C) 2011-2012, Kwpolska.
# See /LICENSE for licensing information.
Expand Down Expand Up @@ -120,7 +120,8 @@ def main():
else:
output = output + utils.print_package_search(pkg, True,
True) + '\n'
print(output.rstrip())
if output != '':
print(output.rstrip())
exit(0)

if args.pac:
Expand Down
4 changes: 2 additions & 2 deletions pkgbuilder/pbds.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python3
# -*- encoding: utf-8 -*-
# PKGBUILDer v2.1.3.1
# PKGBUILDer v2.1.3.2
# An AUR helper/library.
# Copyright (C) 2011-2012, Kwpolska.
# See /LICENSE for licensing information.
Expand All @@ -16,7 +16,7 @@
:License: BSD (see /LICENSE).
"""

from . import T, _, PBError, __version__
from . import _, PBError, __version__
import sys
import os
import gettext
Expand Down
2 changes: 1 addition & 1 deletion pkgbuilder/upgrade.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python3
# -*- encoding: utf-8 -*-
# PKGBUILDer v2.1.3.1
# PKGBUILDer v2.1.3.2
# An AUR helper/library.
# Copyright (C) 2011-2012, Kwpolska.
# See /LICENSE for licensing information.
Expand Down
4 changes: 2 additions & 2 deletions pkgbuilder/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python3
# -*- encoding: utf-8 -*-
# PKGBUILDer v2.1.3.1
# PKGBUILDer v2.1.3.2
# An AUR helper/library.
# Copyright (C) 2011-2012, Kwpolska.
# See /LICENSE for licensing information.
Expand All @@ -16,7 +16,7 @@
:License: BSD (see /LICENSE).
"""

from . import DS, T, _, PBError
from . import DS, _, PBError
from .aur import AUR
import pyalpm
import pycman
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#from distutils.core import setup

setup(name='pkgbuilder',
version='2.1.3.1',
version='2.1.3.2',
description='An AUR helper (and library) in Python 3.',
author='Kwpolska',
author_email='[email protected]',
Expand Down

0 comments on commit f8b9964

Please sign in to comment.