aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/rpm/__init__.py
Commit message (Collapse)AuthorAge
* rpm: Stop decoding stringsJochen Sprickerhof2021-01-31
| | | | Fails with newer rpmlib
* Fix flake8's W605 (invalid escape sequence)Guido Günther2018-10-15
| | | | | | See also https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
* 8bit GuidoGuido Günther2018-02-26
|
* rpm.SpecFile: support %autosetupMarkus Lehtonen2017-12-16
| | | | | | | | | Try to do "the right thing" when %autosetup macro is used in the spec file. That is, do not examine/manage %patch macros at all, but, assume that patches are handled by %autosetup which was introduced in RPM v4.11. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* rpm: conditionally check for librpm flagsGuido Günther2017-11-13
| | | | | Not all of them are in newer librpm and this way we can add new ones as needed as well.
* Kill six.string_typesGuido Günther2017-10-20
|
* Kill six.integer_typesGuido Günther2017-10-20
|
* Kill six.iteritemsGuido Günther2017-10-20
|
* pkg: clear __init__.pyGuido Günther2017-08-03
| | | | for readability
* rpm: port to python3Guido Günther2017-08-02
| | | | Files and blobs are bytestrings now
* Fix doc stringGuido Günther2016-12-07
| | | | Git-Dch: Ignore
* import_srpm: Drop epoch tooGuido Günther2016-12-07
| | | | | | Upstream tags are without epoch so we need to filter that out too. Thanks: Tzafrir Cohen
* gbp/rpm: flake8 cleanGuido Günther2016-12-07
|
* specfile: handle %patch -FTzafrir Cohen2016-12-07
| | | | | | | | | The %patch macro of rpm supports the flag -F<num>, which seems to be similar to that of patch(1): allow patches with a specific fuzz. Parse the option but ignore it since we don't want patches with fuzz. Closes: #846479
* rpm: improve error message on specfile patch parser errorsGuido Günther2016-12-07
| | | | | | | | | | | | | | | The parser uses optparse and gave confusing error messages on failure like: Usage: buildpackage_rpm.py [options] buildpackage_rpm.py: error: no such option: -F This now looks like Usage: gbp.rpm internal patch macro opts parser for -F2 gbp.rpm internal patch macro opts parser: error: no such option: -F
* Fix doc stringGuido Günther2016-12-05
| | | | Git-Dch: Ignore
* rpm: allow to filter out elements from the version dictGuido Günther2016-12-05
|
* commands: allow to fall back to error reason if stderr is emptyGuido Günther2016-11-04
| | | | | | | Use this in PristineTar and SrcRpmFile to give better error messages if the command doesn't even get to print to stderr (i.e. missing on disk). Closes: #842592
* Update exception syntaxGuido Günther2015-10-27
| | | | | | to work towards Python3 support Gbp-Dch: Ignore
* Check for six.integer_types instead of int and longGuido Günther2015-10-24
| | | | | | Long does not exist in Python3 Git-Dch: Ignore
* Use six.iteritems()Guido Günther2015-10-24
| | | | | | to work towards Python3 support Gbp-Dch: Ignore
* Fix FSF address - thanks rpmlintEvgeni Golov2015-06-22
| | | | use gnu.org/licences instead of a postal address, as suggested by Guido
* Sort test resultGuido Günther2015-05-28
| | | | to make it Python3 compatible
* SrcRpmFile: Add stderr to error messagesGuido Günther2015-04-01
| | | | | | so we can better debug failures like http://honk.sigxcpu.org:8001/job/git-buildpackage/230/changes
* Remove unused importGuido Günther2015-02-20
| | | | Gbp-Dch: Ignore
* rpm: suppress stderr when unpacking src.rpmMarkus Lehtonen2015-02-18
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Introduce rpm helpersMarkus Lehtonen2014-07-24
Implements a new gbp.rpm module that contains functionality for e.g. parsing and editing spec files, reading src.rpm files rpm-specific packaging policy etc. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com> Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com> Signed-off-by: Huang Hao <hao.h.huang@intel.com>