Davide Madrisan
29e18765b6
autospec, plugins: rework the logic of the command-line options parser
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-25 23:21:06 +01:00
Davide Madrisan
288d828aaa
translation framework: xgettext is buggy: use 'bash --dump-po-strings' instead and rework all the code
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-25 15:54:34 +01:00
Davide Madrisan
5a00359a29
Point to the translation file autospec-all in all modules and libraries
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-23 23:45:02 +01:00
Davide Madrisan
bf480b6358
update translation framework - second stage
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-23 23:17:17 +01:00
Davide Madrisan
5774796d00
Makefile.env, Makefile's: add some variables to Makefiles.env and use them in the make targets 'pot-files'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-19 23:30:22 +01:00
Davide Madrisan
f525086f8b
Makefile: new target 'pot-files'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-19 22:45:31 +01:00
Davide Madrisan
f2dc888706
libcfg.lib: fix translation string (misplaced ':' character)
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-18 20:16:52 +01:00
Davide Madrisan
c84fa05747
libcfg.lib: exit if the given configuration files do not exist
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-18 20:09:15 +01:00
c5d5093431
libapse.lib: fix some version comparison errors by specifying numbers base
...
How to reproduce: /usr/bin/autospec -u ocre -a1,2
Errors fixed:
/usr/share/autospec/lib/libapse.lib: line 159: 019: value too great for base (error token is "019")
/usr/share/autospec/lib/libapse.lib: line 162: 019: value too great for base (error token is "019")
2012-11-16 18:40:20 +01:00
Davide Madrisan
5008e884d4
libcfg.lib, config-getvar: option '-C|--config': accept a list of configuration files containing wilcards
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-15 22:55:31 +01:00
Davide Madrisan
15f3575b2e
autospec, plugins: add the option '-C|--config' for selecting a different user configuration file or list of user configuration files
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-14 22:42:08 +01:00
Davide Madrisan
c8faaf8a70
libmsgmng.lib: allow users to write and select customized color schemes (~/.autospec.d/color-theme.<color_scheme>)
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-11 19:33:38 +01:00
Davide Madrisan
a2056ba9d5
autospec, autospec.conf, plugins: replace the option '--colorize' by '--colors <color-theme>'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-11 18:56:52 +01:00
Davide Madrisan
54b8190ba1
revert commit a03a529513
: this creates some issues in the translations
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-10 23:05:06 +01:00
Davide Madrisan
4edf024f5f
libcfg.lib: do not check for configuration files groups and permissions
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-10 21:42:10 +01:00
Davide Madrisan
e8b9a33167
lib/libmsgmng.lib, conf/Makefile: move theme settings to configuration files (color-theme.*)
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-10 21:01:37 +01:00
Davide Madrisan
cd7d6b663d
autospec,plugins,libraries: a color scheme can be selected now by using the new command-line option '--colorize-theme'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-10 15:47:12 +01:00
Davide Madrisan
a03a529513
all plugins: do not load a library already loaded by another autospec module
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-10 11:52:20 +01:00
Davide Madrisan
acf87e5628
lib/libcfg.lib, lib/libmsgmng.lib: update copyleft
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-08 22:09:52 +01:00
Davide Madrisan
924f2b2cab
libmsgmng.lib: allow users to modify ESC, CRIT, NOTE, WARN, EXIT, and NORM color codes
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-08 21:07:55 +01:00
Davide Madrisan
f929f20486
config-getvar: fix the help message (incorrect list of default files)
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-07 22:24:08 +01:00
Davide Madrisan
4623dd6866
libnetwork.lib: fix warning message in 'git.create_tarball()'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-31 22:11:49 +01:00
Davide Madrisan
3425fbf7ee
libnetwork.lib: git.create_tarball(): add a warning message when the version passed to the function is not the expected one (that is a string made by the current date in the format YYYYMMDD followed by 'git')
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-31 22:01:49 +01:00
Davide Madrisan
f107a20bf8
libnetwork.lib; pck-update (action 3,5): improve the functions 'git.download()' and 'git.create_tarball()' by adding the option '--pck-version' and use it when calling 'git.download' in pck-update
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-30 23:17:59 +01:00
Davide Madrisan
dfbd94458e
libnetwork.lib: new helper function: 'git.download'
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-29 22:55:49 +01:00
Davide Madrisan
770a201882
lib/libnetwork.lib: curl.download(): do use the curl options set by the function argument '--options' (or '-o') instead of the global variable ''
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-20 12:28:30 +02:00
Davide Madrisan
1448f6ab3d
libnetwork: fix syntax error
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-13 19:43:58 +02:00
Davide Madrisan
b0555e95b7
libnetwork: print an informational message before creating the source compressed tarball. This may take a while
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-13 19:34:16 +02:00
Davide Madrisan
dde8cdd235
libnetwork: clone the entire git repository when the option '--preserve-dot-git' is selected by user
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-13 19:23:40 +02:00
Davide Madrisan
6962a1ac16
libnetwork.lib: git.create_tarball(): add some debug messages
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-02 23:06:47 +02:00
Davide Madrisan
500d3b335e
libnetwork.lib: git.create_tarball(): fix typo
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-02 21:14:04 +02:00
Davide Madrisan
5022004eac
libnetwork.lib: git.create_tarball(): only clone the last commit
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-10-02 20:53:01 +02:00
Davide Madrisan
ef06c3e486
libnetwork.lib: do not run the git command in quiet mode
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-09-22 08:19:29 +02:00
Davide Madrisan
0a648b670e
spec-create, lib/libnetwork.lib: add aupport for git branches in spec-create by adding the new options --git-branch and --preserve-dot-git
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-09-19 19:27:50 +02:00
Davide Madrisan
775f2a7049
libnetwork.lib: remove the extra newline added to workaroung a bug in curl; it is fixed now
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-08-28 23:55:09 +02:00
Davide Madrisan
616d130d55
lib/libapsa.lib: coding style fixes
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-07-21 19:47:56 +02:00
Davide Madrisan
89d6517a79
libapse.lib: do not use "dirname" and "basename": bash provides primitives to do that
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-07-07 21:20:22 +02:00
Davide Madrisan
037669307b
libapse.lib: style fixes
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-07-07 19:47:23 +02:00
Davide Madrisan
1504e58b3e
libspec.lib: style fixes
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-07-07 17:17:11 +02:00
Stefano Cotta Ramusino
9db6a7c44d
libspec.lib: expand compound rpm variables such as %{majorminor}
...
Signed-off-by: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
2012-07-04 03:37:20 +02:00
Stefano Cotta Ramusino
6f23a0da8e
libapse.lib,conf/03-apse.conf: fix scraping values and add new sites
...
Signed-off-by: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
2012-07-04 03:28:22 +02:00
Davide Madrisan
b856cd2959
pck-update,libnetwork.lib: a package name can contain one or more undescores so add _ to the list of allowed characters
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-06-18 21:55:25 +02:00
Davide Madrisan
f93b85c9f5
unify the output of all the modules test
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-05-20 16:42:59 +02:00
Davide Madrisan
7a68b819d4
pck-update, test00_specsyntax: move code from pck-update (action 4) to a new test file test00_specsyntax
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-05-19 23:10:12 +02:00
Davide Madrisan
a50a7d17d7
libtest.lib: new library for test framework
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-05-19 14:16:01 +02:00
Davide Madrisan
55bfa01730
Split autospec.conf into several configuration files
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-05-05 23:33:18 +02:00
Davide Madrisan
50b3fe9d32
libnetwork.lib: repository.get_srpm_pckname_from_site(): make the search case-insensitive
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-04-30 23:58:25 +02:00
Davide Madrisan
8f57ec4a1c
libnetwork.lib: do not convert curl dumps to lowercase letters
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-04-29 00:10:30 +02:00
Davide Madrisan
04a69669e4
libnetwork.lib: make repository.get_srpm_pckname_from_site() work again for curl dumps of ftp sites
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-04-25 23:07:55 +02:00
Davide Madrisan
0594180470
libnetwork.lib: move code from spec-create to the new function git.create_tarball()
...
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-04-24 22:39:23 +02:00