Commit Graph

29 Commits

Author SHA1 Message Date
08bfa59a98 libspec.lib: use rpmspec -P <specfile> instead of rpm -q --specedit ... if rpm 4 is detected 2019-06-25 22:21:20 +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
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
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
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
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
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
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
6b8099f31d libtranslate.lib: new library
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-11-30 22:02:42 +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
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
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
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
Davide Madrisan
7a982322a8 pck-update: remove SPEC_OBSOLETES_ESCAPED
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-01-25 20:25:45 +01:00
Davide Madrisan
f086d23cce libspec.lib: Correctly parse lines containing more complex 'obsoletes' directives
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-01-25 20:15:01 +01:00
Davide Madrisan
9cc2f35855 libspec.lib: Workaround for lines containing "Obsoletes pck <= ver"
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-01-25 19:30:56 +01:00
Davide Madrisan
e642fb425e libspec.lib: rework rpmvars.init() in order to support rpm macro expressions
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-01-15 13:12:55 +01:00
Davide Madrisan
3daac96b68 plugins,tools,tests,libs: use LC_ALL instead of LANG
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
2012-01-02 21:16:48 +01:00
ea971add94 libspec: the previous fix was not correct 2011-09-24 18:53:50 +02:00
fa9b236d17 libspec: provide a better workaround for rpm segfaults when evaluating urls with '%' characters 2011-09-24 18:43:02 +02:00
55df4cbe08 libspec: quote '%' characters before passing strings to rpm --eval to avoid a segmentation fault error 2011-07-19 16:07:53 +02:00
Silvan Calarco
aa237198c2 Initial commit 2011-04-26 21:39:44 +02:00