Commit Graph

95 Commits

Author SHA1 Message Date
41731ef882 libnetwork.lib: support for git repositories which don't have '.git' in their url 2015-09-26 15:00:22 +02:00
Davide Madrisan
faf2a81b00 libspec.lib - Accept the rpm token %global which defines macros in global context
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2015-03-29 18:40:01 +02:00
Davide Madrisan
1ef49ec99d libnetwork.lib - use the builtin command 'type' instead of 'which'
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2014-12-14 22:31:27 +01:00
Davide Madrisan
26856b5b71 spec-create: Honour the pck version set by the user for specs generated from git
specfile.create(): always execute 'git.create_tarball()' with the option
'--pck-version'. This way a user-provided package version will be used
instead of the default one.

This patch will permit to force a user defined package version when desired.

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2014-08-20 21:00:14 +02:00
b767938678 libnetwork.lib: quick fix: .git suffix is not optional when cloning from http/https urls 2014-07-08 18:09:24 +02:00
653fc9cd35 libnetwork.lib: never use '--depth=1' when cloning from http and https git urls
- fix necessary and tested with code.google.com
- additionally print full 'git clone ..' command line used in debug output
2013-08-04 22:34:00 +02:00
Davide Madrisan
69a4080a61 libtest.lib: fix two broken calls to 'notify()'
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2013-07-19 18:35:36 +02:00
8b06b41b20 pck-update, libspec, libapse: support for a special specfile macro to disable scraping from specified sources
E.g.: enter the macro below in the specfile to disable scrape sources with indexes 0,2 and 4:
2013-06-05 00:23:06 +02:00
927ad3a5f7 libnetwork.lib: git source: add support for branch names containing slashes 2013-05-05 21:25:27 +02:00
636e7f8495 libspec.lib: also support "=" relation when assigning SPEC_OBSOLETES. 2013-01-19 18:22:52 +01:00
644f634393 libspec.lib: reworked sed expressions to get SPEC_SOURCE0_PCKNAME from SPEC_SOURCE0 2013-01-07 13:55:01 +01:00
Davide Madrisan
2e20dab6ef libspec.lib: fix initialization of SPEC_SOURCE0 and SPEC_SOURCE0_VERBATIM
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2013-01-06 23:24:56 +01:00
9c934b546d libapse.lib: fix and simplify update check at sourceforge.net 2013-01-03 14:45:37 +01:00
Davide Madrisan
45b271e4c9 libspec.lib: better separation of the autospec and rpm output when reporting a syntax error of a specfile
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-09 20:44:31 +01:00
Davide Madrisan
3c4d5b7880 libspec.lib: better error reporting when the specfile has syntax errors
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-09 18:05:40 +01:00
Davide Madrisan
a176e54cee libspec.lib: specfile.check_syntax(): modify the error message
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-09 00:38:21 +01:00
Davide Madrisan
b65b2a0b87 libmsgmng.lib: translate "ERROR", "WARNING", and "DEBUG"
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-09 00:12:57 +01:00
Davide Madrisan
ee9a2c72b2 libspec: 'rpm -q --specfile --specedit <specfile>' does not always exit with an error code when the specfiles have syntax errors. Try to catch these problems.
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-08 23:59:53 +01:00
Davide Madrisan
58edaf3373 libspec: new function 'specfile.check_syntax()'
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-08 23:32:54 +01:00
Davide Madrisan
40a6110422 libraries, autospec: refactoring library loading to fix some issues
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-01 22:50:46 +01:00
Davide Madrisan
868c8b882a libs,tests: add a debug message saying that the file is being loaded
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-01 17:54:46 +01:00
Davide Madrisan
61b0a67504 libapse.lib.: do not use the real paths of libspe.lib. Use @libdir@ instead
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-01 17:45:50 +01:00
Davide Madrisan
8cd4f03cb4 libraries: get rid of the clashing variables 'me'
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-12-01 17:40:21 +01:00
Davide Madrisan
55b61eebb1 libapse.lib: use libtranslate.lib
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-30 22:12:32 +01:00
Davide Madrisan
6b8099f31d libtranslate.lib: new library
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-30 22:02:42 +01:00
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