Age | Commit message (Collapse) | Author |
|
and pylint exception that doesn't trigger
|
|
Types are classes in python3 so we get 'class' instead of 'type'.
Ignore that detail in the matcher since it's not relevanthere.
|
|
Provides better error messages as is more consistent as eq_ was already
used in some test cases.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
introduced by 0a4725c045a5a55592dafd41c6ef6f9bab4791cd
|
|
since searching both isn't supported in Python3. Since the tests are run
from the toplevel dir we'll pick up the right scripts.
|
|
so we see all git commands
|
|
to work towards Python3 support
Gbp-Dch: Ignore
|
|
so Python3 can cope as well
|
|
Python3 returns a dict_items obj
|
|
The former is supported with python3
|
|
|
|
to work towards Python3 support
Gbp-Dch: Ignore
|
|
to work towards Python3 support
Gbp-Dch: Ignore
|
|
via
2to3-3.4 -w -f print .
to work towards python3 support
Gbp-Dch: Ignore
|
|
to work towards Python3 support
Gbp-Dch: Ignore
|
|
Python3 does not return None anymore
|
|
Gbp-Dch: Ignore
|
|
User might have a system and/or user specific gbp config files. Disable
these config files so that they don't affect the component tests.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
When we write out patches to subdirs using a topic we want to filter out
this topic from the commit message. Support for this was lost in
7ce15d2434ee42aa5a1afce3d03069c5efb2db1b
add it back. Also fix parsing of the deprecated commands.
|
|
We shouldn't generate the deprecated ones
|
|
We deprecate sections starting with git- and gbp- to reduce the
confusion about what gets parsed first.
|
|
Gbp-Dch: Ignore
|
|
so we can use them in the unit tests as well
|
|
|
|
Initial version of gbp-pq-rpm - a tool for managing patch queues for rpm
packages. The functionality more or less corresponds to that of the
(Debian) gbp-pq. The only major difference probably being (in addition
to the obvious of working with .spec files instead of debian/) is that
patches are always imported on top of the upstream version, not on top
of the packaging branch (which might not even contain any source code).
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Olev Kartau <olev.kartau@intel.com>
|
|
A step towards being able to run GBP tools from subdirectories.
Now expands '%(top_dir)s' and '%(git_dir)s' in config file path to root
of the working directory and git metadata directory, respectively.
Also, adds a new method _read_config_file() in preparation for
supporting per-tree config files.
Fixes tests.test_Config: currently the only correct way to define the
config file(s) to be parsed is by using the GBP_CONF_FILES environment
variable.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
For selecting whether to dump all the files recursively or just the top
level directory of the tree.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Simple wrapper to the git-status command.
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Make difference between regular files and directories, eliminating the
requirement of listing directories in the file list.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
This is a method of getting the filename and status information of a
diff. That is, a list of files that changed and their status, "added",
"modified" etc.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
So that it can be re-used by the upcoming pq-rpm tool.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Preventing a infinite recursion which can be triggered by gbp pq export
--commit.
|
|
Closes: #761160
|
|
This avoids spurious error messages during test runs.
|
|
to avoid pristine-tar showing up in the matched branches
|
|
Initial version of the git-import-srpm: a tool for importing source
rpms.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
|
|
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>
|
|
Thanks: Sandro Tosi
Closes: #748339
|
|
This allows us to build an internal list of valid options and print
these.
|
|
|
|
This only allows to print single config values so far.
Closes: #733470
|
|
revealing another bug where we overwrote parsed values with defaults
Closes: #733759
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
This avoids file name collisions and weired files in the working copy.
|
|
The dch tool might not report it's version if it is incorrectly
compiled. Create a dummy changelog and parse it "manually" to determine
the default urgency level.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Closes: #739888
|
|
This would otherwise overwrite values set in the legacy config sections.
Closes: #733759
|