Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Revert commits f04d3c96e3612855e23c87d60a2614ac6ee71a50 and
2d2c204fed2a40fba23fe8379ac49357e3904cc1.
We cannot do this for native packages for which the orig source tarball
changes after every change.
|
|
Change-Id: If01f88677e43a695bec281d5638e84e6a01bcf33
|
|
without this patch, tall ball always be re-created even if already
exist for native package.
Change-Id: Ie33569c3da77013bf2895c0f5f9b0d9752cf906f
|
|
If no %setup section, return default value in guess_orig_prefix()
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Prevents extra slashes in filenames (i.e. something like like
mypkg-1.0//foo.txt) inside the orig tarball when using git archive.
Also, prevents prefixes with leading slashes.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Use the local per-tree/per-branch config file(s) from the exported
tree-ish instead of the current working copy.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Instead of the deprecated _git_getoutput() method. Also, capture stderr
and put the error message to the exception, instead.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Add support for reading the local config file(s) from a given git
tree-ish.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Fixes a bug in import-dscs introduced by "config: read the right config
if run from subdir".
Also, adds a new method _read_config_file() in preparation for
supporting per-tree config files.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
- disable building docs for tizen
- Requires python, python-rpm
Change-Id: I4325812839381629a3842951999d2892e9ca7c62
|
|
specfilename was misspelled as specfile, causing
access to undefined variable
|
|
return value was assigned to "var" which was not
declared and not used, thus we missed the real
return value being non-zero.
|
|
Only tags were fetched, but no heads at all.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
To get correct report if coverage is invoked directly (not through
nose/disttools) in order to get an xml report, for example.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
The weak dependency tags (recommends, suggests etc) are not in rpm
upstream so we can't rely on checking the version of rpmlib. Instead,
just check if we run in a distro that should support those.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
More intelligent parsing of the git output (man page). Try to
parse optional options like '--[no-]standard-notes' of git-show
correctly. In this example both 'no-standard-notes' and 'standard-notes'
would be available.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Add unittests - disabled by default. Also, make unittest build
requirements conditional.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Remove backspace characters when examining man page section names.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
One can now define conditional patches that are enclosed in '%if' or
'%ifarch' when the spec file is updated. One can do this by defining
'Gbp-Rpm-If: <conditional>' and 'Gbp-Rpm-IfArch: <conditional>' in the
commit message.
Only one conditional per patch is supported, i.e. you cannot define
'IfArch' and 'If' for the same patch.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Don't try to be too clever when importing an (true) src.rpm - just
import all files from there without trying to guess file list from spec.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Don't even try to import non-tar archives to pristine-tar because that
fails. Instead, print a warning and continue without using pristine-tar.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Use 'origin' as the "fetch remote" if the current branch does not have
an upstream as this is the remote that git-fetch uses in this case.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
- use loops to generate dict/list
- Called logging.Logger.__init__ instead of using super(). In python 2.6
logging.Logger is not new-style class, therefore supper() is failing.
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
This is just a workaround, this should be fixed in nicer way by
refactoring the code
Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com>
|
|
Enhance some tests by checking that the correct files are present in the
working directory of the repo.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Get rid of duplicate data tracking.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
To get rid of duplicate data tracking. Also, add test for testing the
macro expansion of patch and source names.
Also add tests for SpecFile.patchseries.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
There is specdir to get the (absolute) directory path.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Use new set/delete methods for updating the patches in the spec file.
The internal patches structure is not updated and now only used when
importing patches.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
'Patch:' does not indicate "patch number 0". Patch: and 'Patch0:' can
both be present in the same spec file.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Support all 'non-list' tags that we know of.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Currently intended for updating '%patch' macros.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
In addition to refactoring, make sure that we keep the internal _tags
structure in sync.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
The preceding node of the deleted node. However, return the next (i.e.
the new first node) of the list if deleting the first node, and, return
None if the list is empty after deletion.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Also, record all tags and macros from the spec in separate internal
structures.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Also, remove the skip_tags option from the init as it's currently not
used anywhere and it'd be better parse the spec file similarly in every
place. The option can be re-added in the future if really needed.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Use package name (in case of src.rpm) or directory name (in case of dir)
as the preferred name of the spec file.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Fixes importing patches when the 'Patch:' tag contains an URI.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Fixes a crash when spec contains setup macro for non-existent source.
The package build would fail but gbp shouldn't crash, of course.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Git-buildpackage-rpm now always updates the 'VCS:' tag in the exported
spec file. A new config option 'spec-vcs-tag' controls the format:
- if empty, no 'VCS' tag is inserted and possible old 'VCS' tag is
removed
- otherwise, a 'VCS' tag is inserted or the old 'VCS' tag is updated
- '%(tag)s' expands to the long tag name (from git-describe)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Currently only the 'VCS' tag is supported.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|