Skip to content

Commit

Permalink
v2.1.2.16: AUR API change from 2011-11-03
Browse files Browse the repository at this point in the history
Signed-off-by: Kwpolska <[email protected]>
  • Loading branch information
Kwpolska committed Nov 30, 2011
1 parent 375a727 commit a4b0aaa
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 28 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.2.15
pkgver=2.1.2.16
pkgrel=1
pkgdesc="A basic Python AUR helper/library."
arch=('any')
Expand All @@ -9,7 +9,7 @@ license=('BSD')
depends=('python' 'pyalpm>=0.5.1-1' 'python-pyparsing' 'pacman>=4.0.0-1')
options=(!emptydirs)
source=("http://pypi.python.org/packages/source/p/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('7b10ec580f1ddf5c274df6eac5e47f04')
md5sums=('a8888df6ac7d1b622b3a7feee00005eb')

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: 2011-11-26
:Version: 2.1.2.15
:Date: 2011-11-30
:Version: 2.1.2.16

PKGBUILDer. A Python AUR helper/library.
=========================================
Expand Down
Binary file added dist/pkgbuilder-2.1.2.16.tar.gz
Binary file not shown.
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: 2011-11-26
:Version: 2.1.2.15
:Date: 2011-11-30
:Version: 2.1.2.16

Copyright (C) 2011, Kwpolska
All rights reserved.
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: 2011-11-26
:Version: 2.1.2.15
:Date: 2011-11-30
:Version: 2.1.2.16

PKGBUILDer. A Python AUR helper/library.
=========================================
Expand Down
4 changes: 2 additions & 2 deletions docs/classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Classes in PKGBUILDer

:Author: Kwpolska
:Copyright: See Appendix B.
:Date: 2011-11-26
:Version: 2.1.2.15
:Date: 2011-11-30
:Version: 2.1.2.16

.. index:: classes
.. module:: PKGBUILDer
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.2.15'
release = '2.1.2.16'

# 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/messagecodes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Appendix A. PKGBUILDer message numbers list
===========================================
:Info: This is an appendix to the PKGBUILDer documentation.
:Author: Kwpolska <[email protected]>
:Date: 2011-11-26
:Version: 2.1.2.15
:Date: 2011-11-30
:Version: 2.1.2.16

In order to help debugging, messages are numbered.
Each message number has four digits: the first one is the
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: 2011-11-26
:Version: 2.1.2.15
:Date: 2011-11-30
:Version: 2.1.2.16
:Manual section: 8
:Manual group: PKGBUILDer manual

Expand Down
16 changes: 5 additions & 11 deletions pkgbuilder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/python3
# PKGBUILDer v2.1.2.15
# PKGBUILDer v2.1.2.16
# A Python AUR helper/library.
# Copyright (C) 2011, Kwpolska
# All rights reserved.
Expand Down Expand Up @@ -52,7 +52,7 @@
import functools
import logging

VERSION = '2.1.2.15'
VERSION = '2.1.2.16'

### PBDS PB global data storage ###
class PBDS:
Expand Down Expand Up @@ -193,7 +193,7 @@ def __init__(self, msg):
:Arguments: a message."""
self.msg = msg
L.error('PBError: '+self)
L.error('PBError: '+self.msg)

def __str__(self):
"""You want to see error messages, don't you?
Expand Down Expand Up @@ -279,21 +279,15 @@ def msearch(self, username):
:Arguments: username.
:Returns: a list."""
aur_pkgs = self.aur.request('msearch', username)
if aur_pkgs['results'] == 'No results found':
return []
else:
return aur_pkgs['results']
return aur_pkgs['results']

def search(self, pkgname):
"""Searches for AUR packages.
:Arguments: package name.
:Returns: a list."""
aur_pkgs = self.aur.request('search', pkgname)
if aur_pkgs['results'] == 'No results found':
return []
else:
return aur_pkgs['results']
return aur_pkgs['results']

def print_package(self, pkg, use_categories = True, prefix=''):
"""Outputs info about package.
Expand Down
2 changes: 1 addition & 1 deletion scripts/pkgbuilder
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# This file is a part of PKGBUILDer.
# File version: 2.1.2.15
# File version: 2.1.2.16
#
# Copyright (C) 2011, Kwpolska
# All rights reserved.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from distutils.core import setup

setup(name='pkgbuilder',
version='2.1.2.15',
version='2.1.2.16',
description='An AUR helper (and library) in python3',
author='Kwpolska',
author_email='[email protected]',
Expand Down

0 comments on commit a4b0aaa

Please sign in to comment.