diff --git a/PKGBUILD b/PKGBUILD index b13687a..f93d2e0 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Kwpolska pkgname=pkgbuilder -pkgver=2.1.2.6 +pkgver=2.1.2.7 pkgrel=1 pkgdesc="A basic Python AUR helper/library." arch=('any') @@ -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=('1e0be44f0570576bd24313deba3c4463') +md5sums=('c69e77597585d7986ffb11fdcc8eaa91') package() { cd "${srcdir}/${pkgname}-${pkgver}" diff --git a/README.rst b/README.rst index 0d07677..7616f9a 100644 --- a/README.rst +++ b/README.rst @@ -3,8 +3,8 @@ README for PKGBUILDer ===================== :Info: This is the README file for PKGBUILDer. :Author: Kwpolska -:Date: 2011-10-28 -:Version: 2.1.2.6 +:Date: 2011-10-29 +:Version: 2.1.2.7 PKGBUILDer. A Python AUR helper/library. ========================================= diff --git a/Rakefile b/Rakefile old mode 100644 new mode 100755 index 95e62eb..03888cb --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,8 @@ +#!/usr/bin/rake update project = "pkgbuilder" aurcat = "16" -task :default => [:help] +task :default => [:update] task :help do puts "Usage: rake command" @@ -35,6 +36,7 @@ task :prepare, :ver do |t, args| sh "sed \"s/:Version: .*/:Version: #{version}/\" README.rst -i" sh "sed \"s/BUILDer .* do/BUILDer #{version} do/\" docs/index.rst -i" sh "sed \"s/# PKG.*/# PKGBUILDer v#{version}/\" pkgbuilder.py -i" + sh "sed \"s/File ver.*/File version: #{version}/\" scripts/pkgbuilder -i" sh "sed \"s/VERSION = .*/VERSION = '#{version}'/\" pkgbuilder.py -i" sh "sed \"s/pkgver=.*/pkgver=#{version}/\" PKGBUILD -i" diff --git a/dist/pkgbuilder-2.1.1.7.tar.gz b/dist/pkgbuilder-2.1.1.7.tar.gz index ac41da0..f5cb32e 100644 Binary files a/dist/pkgbuilder-2.1.1.7.tar.gz and b/dist/pkgbuilder-2.1.1.7.tar.gz differ diff --git a/dist/pkgbuilder-2.1.1.8.tar.gz b/dist/pkgbuilder-2.1.1.8.tar.gz index 150997a..40920c8 100644 Binary files a/dist/pkgbuilder-2.1.1.8.tar.gz and b/dist/pkgbuilder-2.1.1.8.tar.gz differ diff --git a/dist/pkgbuilder-2.1.2.6.tar.gz b/dist/pkgbuilder-2.1.2.6.tar.gz index b8fa1ab..b0020c5 100644 Binary files a/dist/pkgbuilder-2.1.2.6.tar.gz and b/dist/pkgbuilder-2.1.2.6.tar.gz differ diff --git a/dist/pkgbuilder-2.1.2.7.tar.gz b/dist/pkgbuilder-2.1.2.7.tar.gz new file mode 100644 index 0000000..fb9b5a2 Binary files /dev/null and b/dist/pkgbuilder-2.1.2.7.tar.gz differ diff --git a/docs/LICENSE.rst b/docs/LICENSE.rst index d664967..776993f 100644 --- a/docs/LICENSE.rst +++ b/docs/LICENSE.rst @@ -3,8 +3,8 @@ Appendix B. License for PKGBUILDer ================================== :Info: This is an appendix to the PKGBUILDer documentation. :Author: Kwpolska -:Date: 2011-10-28 -:Version: 2.1.2.6 +:Date: 2011-10-29 +:Version: 2.1.2.7 Copyright (C) 2011, Kwpolska All rights reserved. diff --git a/docs/README.rst b/docs/README.rst index 0d07677..7616f9a 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -3,8 +3,8 @@ README for PKGBUILDer ===================== :Info: This is the README file for PKGBUILDer. :Author: Kwpolska -:Date: 2011-10-28 -:Version: 2.1.2.6 +:Date: 2011-10-29 +:Version: 2.1.2.7 PKGBUILDer. A Python AUR helper/library. ========================================= diff --git a/docs/classes.rst b/docs/classes.rst index 315bd53..09814a7 100644 --- a/docs/classes.rst +++ b/docs/classes.rst @@ -4,8 +4,8 @@ Classes in PKGBUILDer :Author: Kwpolska :Copyright: See Appendix B. -:Date: 2011-10-28 -:Version: 2.1.2.6 +:Date: 2011-10-29 +:Version: 2.1.2.7 .. index:: classes .. module:: PKGBUILDer diff --git a/docs/conf.py b/docs/conf.py index 5cacb9d..f205f93 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -50,7 +50,7 @@ # The short X.Y version. version = '2.1' # The full version, including alpha/beta/rc tags. -release = '2.1.2.6' +release = '2.1.2.7' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/messagecodes.rst b/docs/messagecodes.rst index 0eca5f7..03a90a2 100644 --- a/docs/messagecodes.rst +++ b/docs/messagecodes.rst @@ -3,8 +3,8 @@ Appendix A. PKGBUILDer message numbers list =========================================== :Info: This is an appendix to the PKGBUILDer documentation. :Author: Kwpolska -:Date: 2011-10-28 -:Version: 2.1.2.6 +:Date: 2011-10-29 +:Version: 2.1.2.7 In order to help debugging, messages are numbered. Each message number has four digits: the first one is the diff --git a/docs/pkgbuilder.8.gz b/docs/pkgbuilder.8.gz index 7ac9750..ab9efc2 100644 Binary files a/docs/pkgbuilder.8.gz and b/docs/pkgbuilder.8.gz differ diff --git a/docs/pkgbuilder.rst b/docs/pkgbuilder.rst index 3f3e819..71f58ec 100644 --- a/docs/pkgbuilder.rst +++ b/docs/pkgbuilder.rst @@ -4,8 +4,8 @@ PKGBUILDer :Author: Kwpolska :Copyright: See Appendix B. -:Date: 2011-10-28 -:Version: 2.1.2.6 +:Date: 2011-10-29 +:Version: 2.1.2.7 :Manual section: 8 :Manual group: PKGBUILDer manual diff --git a/locale/en/LC_MESSAGES/pkgbuilder.po b/locale/en/LC_MESSAGES/pkgbuilder.po index 2cc5ba8..0553de7 100644 --- a/locale/en/LC_MESSAGES/pkgbuilder.po +++ b/locale/en/LC_MESSAGES/pkgbuilder.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: 2.1.1.4\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-10-22 10:17+0100\n" -"PO-Revision-Date: 2011-10-22 10:17+0100\n" +"POT-Creation-Date: 2011-10-29 19:15+0100\n" +"PO-Revision-Date: 2011-10-29 19:15+0100\n" "Last-Translator: Kwpolska \n" "Language-Team: \n" "Language: \n" @@ -48,156 +48,160 @@ msgstr "[out of date]" msgid "votes" msgstr "votes" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:422 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:424 msgid "The build function reported a proper build." msgstr "The build function reported a proper build." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:431 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:433 msgid "[ERR3451] validation: NOT installed" msgstr "[ERR3451] validation: NOT installed" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:435 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:437 msgid "[ERR3452] validation: outdated {0}" msgstr "[ERR3452] validation: outdated {0}" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:438 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:440 msgid "[INF3450] validation: installed {0}" msgstr "[INF3450] validation: installed {0}" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:442 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:444 msgid "[ERR3301] makepkg returned 1." msgstr "[ERR3301] makepkg returned 1." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:447 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:449 msgid "[ERR3401] Building more AUR packages is required." msgstr "[ERR3401] Building more AUR packages is required." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:474 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:479 msgid "[ERR3101] download: 0 bytes downloaded" msgstr "[ERR3101] download: 0 bytes downloaded" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:491 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:496 msgid "[ERR3151] extract: no files extracted" msgstr "[ERR3151] extract: no files extracted" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:579 -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:640 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:584 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:646 msgid "[ERR3201] depcheck: cannot find {0} anywhere" msgstr "[ERR3201] depcheck: cannot find {0} anywhere" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:606 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:612 msgid "[ERR3001] Package {0} not found." msgstr "[ERR3001] Package {0} not found." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:609 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:615 msgid "Building {0}..." msgstr "Building {0}..." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:617 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:623 msgid "Downloading the tarball..." msgstr "Downloading the tarball..." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:620 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:626 msgid "{0} kB downloaded" msgstr "{0} kB downloaded" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:622 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:628 msgid "Extracting..." msgstr "Extracting..." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:623 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:629 msgid "{0} files extracted" msgstr "{0} files extracted" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:627 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:633 msgid "Checking dependencies..." msgstr "Checking dependencies..." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:632 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:638 msgid "found in system" msgstr "found in system" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:632 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:638 msgid "found in repos" msgstr "found in repos" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:633 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:639 msgid "found in the AUR" msgstr "found in the AUR" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:636 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:642 msgid "none found" msgstr "none found" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:650 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:656 msgid "[ERR3202] depcheck: UnicodeDecodeError. The PKGBUILD cannot be read. There are invalid UTF-8 characters (eg. in the Maintainer field.) Error message: {0}" msgstr "[ERR3202] depcheck: UnicodeDecodeError. The PKGBUILD cannot be read. There are invalid UTF-8 characters (eg. in the Maintainer field.) Error message: {0}" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:744 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:755 msgid "Gathering data about packages..." msgstr "Gathering data about packages..." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:750 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:761 msgid "{0} upgradeable packages found:" msgstr "{0} upgradeable packages found:" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:752 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:763 msgid "there is nothing to do" msgstr "there is nothing to do" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:756 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:767 msgid "Proceed with installation? [Y/n] " msgstr "Proceed with installation? [Y/n] " -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:779 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:791 msgid "A python3 AUR helper (sort of.) Wrapper-friendly (pacman-like output.)" msgstr "A python3 AUR helper (sort of.) Wrapper-friendly (pacman-like output.)" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:780 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:792 msgid "You can use pacman syntax if you want to." msgstr "You can use pacman syntax if you want to." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:786 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:798 msgid "packages to build" msgstr "packages to build" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:791 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:803 msgid "don't use colors in output" msgstr "don't use colors in output" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:794 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:806 msgid "don't check dependencies (may break makepkg)" msgstr "don't check dependencies (may break makepkg)" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:797 -msgid "pacman syntax compatiblity" -msgstr "pacman syntax compatiblity" +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:809 +msgid "build packages but do not install/upgrade anything" +msgstr "build packages but do not install/upgrade anything" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:799 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:812 msgid "don't check if packages were installed after build" msgstr "don't check if packages were installed after build" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:802 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:816 +msgid "pacman syntax compatiblity" +msgstr "pacman syntax compatiblity" + +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:818 msgid "pacman syntax compatiblity" msgstr "pacman syntax compatiblity" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:806 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:822 msgid "view package information" msgstr "view package information" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:808 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:824 msgid "search the AUR for matching strings" msgstr "search the AUR for matching strings" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:812 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:828 msgid "upgrade installed AUR packages" msgstr "upgrade installed AUR packages" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:832 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:849 msgid "Package {0} not found." msgstr "Package {0} not found." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:836 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:853 msgid "" "Category : {cat}\n" "Name : {nme}\n" @@ -223,27 +227,27 @@ msgstr "" "First Submitted: {fsb}\n" "Description : {dsc}\n" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:854 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:871 msgid "yes" msgstr "yes" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:855 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:872 msgid "no" msgstr "no" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:870 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:887 msgid "[ERR5002] search string too short, API limitation" msgstr "[ERR5002] search string too short, API limitation" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:872 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:889 msgid "Searching for exact match..." msgstr "Searching for exact match..." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:875 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:892 msgid "not found" msgstr "not found" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:24 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:53 msgid "" "Hello!\n" "\n" @@ -261,11 +265,11 @@ msgstr "" "and compile the package manually.\n" "\n" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:33 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:62 msgid "Hit Enter/Return to continue. " msgstr "Hit Enter/Return to continue. " -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:58 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:87 msgid "" "\n" "\n" @@ -287,7 +291,7 @@ msgstr "" "\n" "If I am wrong, though, congratulations!\n" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:69 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:98 msgid "" "\n" "\n" @@ -315,7 +319,7 @@ msgstr "" "(zsh users: hash -r, other shells may need another command). For\n" "python module usage, type `import pkgbuilder` into the python prompt.\n" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:85 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:114 msgid "" "It looks like you want to quit. Okay then, goodbye.\n" "No work has been started yet.\n" @@ -329,7 +333,7 @@ msgstr "" "If that's what you want to do, go for it. If it isn't, run this\n" "script again." -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:91 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:120 msgid "" "It looks like you want to quit. Okay then, goodbye.\n" "All the files this script was working on are placed in\n" diff --git a/locale/pl/LC_MESSAGES/pkgbuilder.po b/locale/pl/LC_MESSAGES/pkgbuilder.po index 9a24ac9..e6a511a 100644 --- a/locale/pl/LC_MESSAGES/pkgbuilder.po +++ b/locale/pl/LC_MESSAGES/pkgbuilder.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: 2.1.1.4\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-10-22 10:17+0100\n" -"PO-Revision-Date: 2011-10-22 10:18+0100\n" +"POT-Creation-Date: 2011-10-29 19:14+0100\n" +"PO-Revision-Date: 2011-10-29 19:15+0100\n" "Last-Translator: Kwpolska \n" "Language-Team: \n" "Language: \n" @@ -48,156 +48,160 @@ msgstr "[nieaktualny]" msgid "votes" msgstr "głosów" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:422 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:424 msgid "The build function reported a proper build." msgstr "Funkcja budowania paczek powiadomiła o prawidłowym zbudowaniu." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:431 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:433 msgid "[ERR3451] validation: NOT installed" msgstr "[ERR3451] walidacja: NIE zainstalowano" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:435 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:437 msgid "[ERR3452] validation: outdated {0}" msgstr "[ERR3452] walidacja: nieaktualne {0}" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:438 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:440 msgid "[INF3450] validation: installed {0}" msgstr "[INF3450] walidacja: zainstalowane {0}" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:442 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:444 msgid "[ERR3301] makepkg returned 1." msgstr "[ERR3301] makepkg zwrócił 1." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:447 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:449 msgid "[ERR3401] Building more AUR packages is required." msgstr "[ERR3401] Należy zainstalować więcej pakietów z AUR." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:474 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:479 msgid "[ERR3101] download: 0 bytes downloaded" msgstr "[ERR3101] download: ściągnięto 0 bajtów" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:491 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:496 msgid "[ERR3151] extract: no files extracted" msgstr "[ERR3151] extract: wypakowano 0 plików" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:579 -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:640 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:584 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:646 msgid "[ERR3201] depcheck: cannot find {0} anywhere" msgstr "[ERR3201] depcheck: nie można nigdzie znaleźć pakietu {0}" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:606 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:612 msgid "[ERR3001] Package {0} not found." msgstr "[ERR3001] Nie znaleziono pakietu {0}." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:609 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:615 msgid "Building {0}..." msgstr "Budowanie {0}..." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:617 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:623 msgid "Downloading the tarball..." msgstr "Ściąganie paczki..." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:620 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:626 msgid "{0} kB downloaded" msgstr "ściągnięto {0} kB" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:622 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:628 msgid "Extracting..." msgstr "Wypakowywanie..." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:623 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:629 msgid "{0} files extracted" msgstr "wypakowano {0} plików" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:627 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:633 msgid "Checking dependencies..." msgstr "Sprawdzanie zależności..." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:632 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:638 msgid "found in system" msgstr "znaleziono w systemie" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:632 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:638 msgid "found in repos" msgstr "znaleziono w repozytoriach" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:633 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:639 msgid "found in the AUR" msgstr "znaleziono w AUR" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:636 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:642 msgid "none found" msgstr "brak" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:650 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:656 msgid "[ERR3202] depcheck: UnicodeDecodeError. The PKGBUILD cannot be read. There are invalid UTF-8 characters (eg. in the Maintainer field.) Error message: {0}" msgstr "[ERR3202] depcheck: UnicodeDecodeError. Nie można przeczytać PKGBUILD. Znajdują się w nim nieprawidłowe znaki UTF-8. Treść błędu: {0}" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:744 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:755 msgid "Gathering data about packages..." msgstr "Zbieranie informacji o pakietach..." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:750 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:761 msgid "{0} upgradeable packages found:" msgstr "Znaleziono {0} pakietów do aktualizacji:" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:752 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:763 msgid "there is nothing to do" msgstr "nie ma nic do zrobienia" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:756 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:767 msgid "Proceed with installation? [Y/n] " msgstr "Kontynuować instalację? [Y/n] " -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:779 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:791 msgid "A python3 AUR helper (sort of.) Wrapper-friendly (pacman-like output.)" msgstr "AUR helper w pythonie 3. Przyjazny dla wrapperów." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:780 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:792 msgid "You can use pacman syntax if you want to." msgstr "Jeśli chcesz, możesz używać składni pacmana." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:786 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:798 msgid "packages to build" msgstr "pakiety do zbudowania" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:791 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:803 msgid "don't use colors in output" msgstr "nie używa kolorów na wyjściu" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:794 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:806 msgid "don't check dependencies (may break makepkg)" msgstr "nie sprawdza zależności (może popsuć makepkg)" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:797 -msgid "pacman syntax compatiblity" -msgstr "kompatybilność ze składnią pacmana" +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:809 +msgid "build packages but do not install/upgrade anything" +msgstr "buduje jedynie pakiety bez instalacji/uaktualniania czegokolwiek" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:799 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:812 msgid "don't check if packages were installed after build" msgstr "nie sprawdza czy pakiety zostały zainstalowane po zbudowaniu" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:802 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:816 +msgid "pacman syntax compatiblity" +msgstr "kompatybilność ze składnią pacmana" + +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:818 msgid "pacman syntax compatiblity" msgstr "kompatybilność ze składnią pacmana" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:806 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:822 msgid "view package information" msgstr "wyświetla informację o pakiecie" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:808 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:824 msgid "search the AUR for matching strings" msgstr "przeszukuje AUR według pasujących ciągów" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:812 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:828 msgid "upgrade installed AUR packages" msgstr "uaktualnia zainstalowane pakiety" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:832 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:849 msgid "Package {0} not found." msgstr "Nie znaleziono pakietu {0}." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:836 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:853 msgid "" "Category : {cat}\n" "Name : {nme}\n" @@ -223,27 +227,27 @@ msgstr "" "Wysłany : {fsb}\n" "Opis : {dsc}\n" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:854 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:871 msgid "yes" msgstr "tak" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:855 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:872 msgid "no" msgstr "nie" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:870 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:887 msgid "[ERR5002] search string too short, API limitation" msgstr "[ERR5002] ciąg zbyt krótki, limitacja API" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:872 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:889 msgid "Searching for exact match..." msgstr "Szukanie dokładnego dopasowania..." -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:875 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:892 msgid "not found" msgstr "nie znaleziono" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:24 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:53 msgid "" "Hello!\n" "\n" @@ -261,11 +265,11 @@ msgstr "" "ręcznie.\n" "\n" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:33 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:62 msgid "Hit Enter/Return to continue. " msgstr "Wciśnij Enter/Return aby kontynuować." -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:58 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:87 msgid "" "\n" "\n" @@ -287,7 +291,7 @@ msgstr "" "\n" "Jeśli się mylę, gratulacje!\n" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:69 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:98 msgid "" "\n" "\n" @@ -315,7 +319,7 @@ msgstr "" "inne powłoki mogą wymagać innej komendy). Dla użycia jako moduł\n" "Pythona, wpisz `import pkgbuilder` do interpretera.\n" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:85 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:114 msgid "" "It looks like you want to quit. Okay then, goodbye.\n" "No work has been started yet.\n" @@ -329,7 +333,7 @@ msgstr "" "Jeśli to jest to, co chcesz zrobić, proszę bardzo. Jeśli nie,\n" "uruchom ten skrypt jeszcze raz." -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:91 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:120 msgid "" "It looks like you want to quit. Okay then, goodbye.\n" "All the files this script was working on are placed in\n" diff --git a/messages.pot b/messages.pot index 110be09..8cae9c7 100644 --- a/messages.pot +++ b/messages.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: 2.1.1.4\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-10-22 10:16+0100\n" -"PO-Revision-Date: 2011-10-22 10:17+0100\n" +"POT-Creation-Date: 2011-10-29 19:14+0100\n" +"PO-Revision-Date: 2011-10-29 19:14+0100\n" "Last-Translator: Kwpolska \n" "Language-Team: \n" "Language: \n" @@ -48,156 +48,160 @@ msgstr "" msgid "votes" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:422 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:424 msgid "The build function reported a proper build." msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:431 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:433 msgid "[ERR3451] validation: NOT installed" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:435 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:437 msgid "[ERR3452] validation: outdated {0}" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:438 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:440 msgid "[INF3450] validation: installed {0}" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:442 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:444 msgid "[ERR3301] makepkg returned 1." msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:447 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:449 msgid "[ERR3401] Building more AUR packages is required." msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:474 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:479 msgid "[ERR3101] download: 0 bytes downloaded" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:491 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:496 msgid "[ERR3151] extract: no files extracted" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:579 -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:640 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:584 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:646 msgid "[ERR3201] depcheck: cannot find {0} anywhere" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:606 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:612 msgid "[ERR3001] Package {0} not found." msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:609 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:615 msgid "Building {0}..." msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:617 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:623 msgid "Downloading the tarball..." msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:620 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:626 msgid "{0} kB downloaded" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:622 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:628 msgid "Extracting..." msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:623 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:629 msgid "{0} files extracted" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:627 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:633 msgid "Checking dependencies..." msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:632 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:638 msgid "found in system" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:632 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:638 msgid "found in repos" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:633 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:639 msgid "found in the AUR" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:636 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:642 msgid "none found" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:650 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:656 msgid "[ERR3202] depcheck: UnicodeDecodeError. The PKGBUILD cannot be read. There are invalid UTF-8 characters (eg. in the Maintainer field.) Error message: {0}" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:744 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:755 msgid "Gathering data about packages..." msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:750 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:761 msgid "{0} upgradeable packages found:" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:752 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:763 msgid "there is nothing to do" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:756 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:767 msgid "Proceed with installation? [Y/n] " msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:779 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:791 msgid "A python3 AUR helper (sort of.) Wrapper-friendly (pacman-like output.)" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:780 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:792 msgid "You can use pacman syntax if you want to." msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:786 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:798 msgid "packages to build" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:791 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:803 msgid "don't use colors in output" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:794 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:806 msgid "don't check dependencies (may break makepkg)" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:797 -msgid "pacman syntax compatiblity" +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:809 +msgid "build packages but do not install/upgrade anything" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:799 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:812 msgid "don't check if packages were installed after build" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:802 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:816 +msgid "pacman syntax compatiblity" +msgstr "" + +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:818 msgid "pacman syntax compatiblity" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:806 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:822 msgid "view package information" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:808 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:824 msgid "search the AUR for matching strings" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:812 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:828 msgid "upgrade installed AUR packages" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:832 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:849 msgid "Package {0} not found." msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:836 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:853 msgid "" "Category : {cat}\n" "Name : {nme}\n" @@ -212,27 +216,27 @@ msgid "" "Description : {dsc}\n" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:854 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:871 msgid "yes" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:855 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:872 msgid "no" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:870 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:887 msgid "[ERR5002] search string too short, API limitation" msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:872 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:889 msgid "Searching for exact match..." msgstr "" -#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:875 +#: /home/kwpolska/git/pkgbuilder/pkgbuilder.py:892 msgid "not found" msgstr "" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:24 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:53 msgid "" "Hello!\n" "\n" @@ -243,11 +247,11 @@ msgid "" "\n" msgstr "" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:33 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:62 msgid "Hit Enter/Return to continue. " msgstr "" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:58 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:87 msgid "" "\n" "\n" @@ -260,7 +264,7 @@ msgid "" "If I am wrong, though, congratulations!\n" msgstr "" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:69 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:98 msgid "" "\n" "\n" @@ -276,7 +280,7 @@ msgid "" "python module usage, type `import pkgbuilder` into the python prompt.\n" msgstr "" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:85 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:114 msgid "" "It looks like you want to quit. Okay then, goodbye.\n" "No work has been started yet.\n" @@ -285,7 +289,7 @@ msgid "" "script again." msgstr "" -#: /home/kwpolska/git/pkgbuilder/INSTALL.py:91 +#: /home/kwpolska/git/pkgbuilder/INSTALL.py:120 msgid "" "It looks like you want to quit. Okay then, goodbye.\n" "All the files this script was working on are placed in\n" diff --git a/pkgbuilder.geany b/pkgbuilder.geany new file mode 100644 index 0000000..751b686 --- /dev/null +++ b/pkgbuilder.geany @@ -0,0 +1,26 @@ + +[indentation] +indent_width=4 +indent_type=0 +indent_hard_tab_width=8 +detect_indent=false +detect_indent_width=false +indent_mode=2 + +[project] +name=pkgbuilder +base_path=/home/kwpolska/git/pkgbuilder/ +description= +file_patterns=*.py; + +[long line marker] +long_line_behaviour=1 +long_line_column=75 + +[files] +current_page=0 +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 + +[VTE] +last_dir=/home/kwpolska/git/pkgbuilder diff --git a/pkgbuilder.py b/pkgbuilder.py index 1a4b4d2..d77a205 100755 --- a/pkgbuilder.py +++ b/pkgbuilder.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -# PKGBUILDer v2.1.2.6 +# PKGBUILDer v2.1.2.7 # A Python AUR helper/library. # Copyright (C) 2011, Kwpolska # All rights reserved. @@ -51,7 +51,7 @@ import gettext import functools -VERSION = '2.1.2.6' +VERSION = '2.1.2.7' T = gettext.translation('pkgbuilder', '/usr/share/locale', fallback='C') _ = T.gettext @@ -448,13 +448,14 @@ def auto_build(self, pkgname, validate = True, performdepcheck = True, os.chdir('../') fancy_warning(_('[ERR3401] Building more AUR packages is \ required.')) - for pkgname2 in build_result: + for pkgname2 in build_result[1]: self.auto_build(pkgname2, validate, performdepcheck, makepkginstall) self.auto_build(pkgname, validate, performdepcheck, makepkginstall) except PBError as inst: fancy_error(str(inst)) + exit(1) def download(self, urlpath, filename, prot = 'http'): """Downloads an AUR tarball (http) to the current directory. @@ -776,7 +777,7 @@ def auto_upgrade(self): pblog('Initialized.') -def main_routine(): +def main(): """Main routine. :Arguments: none. @@ -805,9 +806,8 @@ def main_routine(): default=True, dest='depcheck', help=_('don\'t \ check dependencies (may break makepkg)')) argopt.add_argument('-w', '--buildonly', action='store_false', - default=True, dest='mkpginst', help=_('don\'t \ - install packages after building')) -#TODO + default=True, dest='mkpginst', help=_('build \ + packages but do not install/upgrade anything')) argopt.add_argument('-V', '--novalidation', action='store_false', default=True, dest='valid', help=_('don\'t check \ if packages were installed after build')) @@ -934,6 +934,9 @@ def main_routine(): pblog('Quitting.') +if __name__ == '__main__': + main() + # Over 900 lines! Compare this to build.pl's 56 (including ~8 useless...) # New features will be included when they will be added to the AUR RPC. # RPC: (search info msearch multiinfo) diff --git a/scripts/pkgbuilder b/scripts/pkgbuilder index 20dfeb9..977a198 100755 --- a/scripts/pkgbuilder +++ b/scripts/pkgbuilder @@ -1,8 +1,42 @@ #!/usr/bin/env python3 +# This file is a part of PKGBUILDer. +# File version: 2.1.2.7 +# +# Copyright (C) 2011, Kwpolska +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions, and the following disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions, and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# 3. Neither the name of the author of this software nor the names of +# contributors to this software may be used to endorse or promote +# products derived from this software without specific prior written +# consent. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + """Run PKGBUILDer.""" import pkgbuilder try: - pkgbuilder.main_routine() + pkgbuilder.main() except KeyboardInterrupt: pkgbuilder.fancy_error(pkgbuilder.DS.inttext) exit(0) diff --git a/setup.py b/setup.py index fe84a63..16bed7c 100755 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from distutils.core import setup setup(name='pkgbuilder', - version='2.1.2.6', + version='2.1.2.7', description='An AUR helper (and library) in python3', author='Kwpolska', author_email='kwpolska@kwpolska.tk',