Skip to content

Commit

Permalink
v2.1.2.8: Utils.msearch()
Browse files Browse the repository at this point in the history
Signed-off-by: Kwpolska <[email protected]>
  • Loading branch information
Kwpolska committed Nov 2, 2011
1 parent 9e2b595 commit 1162c13
Show file tree
Hide file tree
Showing 15 changed files with 52 additions and 22 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.7
pkgver=2.1.2.8
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=('c69e77597585d7986ffb11fdcc8eaa91')
md5sums=('2678acc4987afd76debcc96dc1ccd5a4')

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-10-29
:Version: 2.1.2.7
:Date: 2011-11-02
:Version: 2.1.2.8

PKGBUILDer. A Python AUR helper/library.
=========================================
Expand Down
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,15 @@ task :git, :ver, :msg do |t, args|
end

if args[:msg].to_s.chomp == ''
puts "Commit message (sans the version)?"
puts "Commit message (sans the version)? |"
commitmsg = STDIN.gets.chomp
else
commitmsg = args[:msg].chomp
end

sh "git add *"
sh "git commit -asm 'v#{version}: #{commitmsg}'"
sh "rm -rfv __pycache__/ build/"
sh "git tag -a 'v#{version}' -m 'Version #{version}'"
sh "git push --tags"
end
Expand Down
Binary file added dist/pkgbuilder-2.1.2.8.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-10-29
:Version: 2.1.2.7
:Date: 2011-11-02
:Version: 2.1.2.8

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-10-29
:Version: 2.1.2.7
:Date: 2011-11-02
:Version: 2.1.2.8

PKGBUILDer. A Python AUR helper/library.
=========================================
Expand Down
18 changes: 16 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-10-29
:Version: 2.1.2.7
:Date: 2011-11-02
:Version: 2.1.2.8

.. index:: classes
.. module:: PKGBUILDer
Expand Down Expand Up @@ -187,6 +187,20 @@ Returns information about a package. Almost equivalent to
:meth:`AUR.request('info', pkgname)`, but returns **`None`** if the package
doesn't exist.

.. method:: msearch(username)
.. index:: info

:Arguments: username.
:Input: none.
:Output: none.
:Returns: a list.
:Exceptions: none.
:Message codes: none.

Returns all packages of the user. Almost equivalent to
:meth:`AUR.request('msearch', username)`, but returns **`[]`** if no
packages were found.

.. method:: search(pkgname)
.. index:: search

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'
# The full version, including alpha/beta/rc tags.
release = '2.1.2.7'
release = '2.1.2.8'

# 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-10-29
:Version: 2.1.2.7
:Date: 2011-11-02
:Version: 2.1.2.8

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-10-29
:Version: 2.1.2.7
:Date: 2011-11-02
:Version: 2.1.2.8
:Manual section: 8
:Manual group: PKGBUILDer manual

Expand Down
4 changes: 2 additions & 2 deletions pkgbuilder.geany
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ long_line_behaviour=1
long_line_column=75

[files]
current_page=0
current_page=1
FILE_NAME_0=33;Python;0;16;0;1;0;/home/kwpolska/git/pkgbuilder/pkgbuilder.py;0;4
FILE_NAME_1=86;None;0;16;0;1;1;/home/kwpolska/git/pkgbuilder/Rakefile;0;4
FILE_NAME_1=2907;None;0;16;0;1;1;/home/kwpolska/git/pkgbuilder/Rakefile;0;4

[VTE]
last_dir=/home/kwpolska/git/pkgbuilder
19 changes: 17 additions & 2 deletions pkgbuilder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/python3
# PKGBUILDer v2.1.2.7
# PKGBUILDer v2.1.2.8
# A Python AUR helper/library.
# Copyright (C) 2011, Kwpolska
# All rights reserved.
Expand Down Expand Up @@ -51,7 +51,7 @@
import gettext
import functools

VERSION = '2.1.2.7'
VERSION = '2.1.2.8'
T = gettext.translation('pkgbuilder', '/usr/share/locale', fallback='C')
_ = T.gettext

Expand Down Expand Up @@ -327,6 +327,21 @@ def info(self, pkgname):
else:
return aur_pkgs['results']

def msearch(self, username):
"""Returns all packages of the user.
:Arguments: username.
:Input: none.
:Output: none.
:Returns: a list.
:Exceptions: none.
:Message codes: none."""
aur_pkgs = self.aur.request('msearch', pkgname)
if aur_pkgs['results'] == 'No results found':
return []
else:
return aur_pkgs['results']

def search(self, pkgname):
"""Searches for AUR packages.
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.7
# File version: 2.1.2.8
#
# 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.7',
version='2.1.2.8',
description='An AUR helper (and library) in python3',
author='Kwpolska',
author_email='[email protected]',
Expand Down

0 comments on commit 1162c13

Please sign in to comment.