Age | Commit message (Collapse) | Author |
|
introduced by 0a4725c045a5a55592dafd41c6ef6f9bab4791cd
|
|
|
|
Python3 does not return None anymore
|
|
to avoid accidental usage. Use DebianSource.is_native instead.
|
|
On Ubuntu dch produces different version numbering. Adapt tests for
this.
Adds a jew class to parse '/etc/lsb-release' to determine the
distribution and it's codename to dynamically adapt tests accordingly.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
That was erroneously removed in
3d6b68ae541d6020ff747628b3e44196999e0a50.
and breaks without dch installed
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
This puts test dirs below /tmp which often is a tmpfs.
All tests include the context module which consolidates tmpdir creation
and cleanup, undoes a chdir in teardown and silences log messages.
|
|
spawn_dch switch gbp.command.wrappers.Command.
* gbp/deb/changelog.py (ChangeLog.spawn_dch): static method adapted from
gbp.scripts.dch and converted to gbp.command_wrappers.Command.
(add_entry): New method adapted from
gbp.scripts.dch.add_changelog_entry.
(add_section): New method adapted from
gbp.scripts.dch.add_changelog_entry. Remove DebianGitRepository and
options, this has nothing to do with changelog management.
* tests/test_Changelog.py: Test new methods.
* gbp/scripts/dch.py: Remove useless functions: system(), spawn_dch(),
add_changelog_section() and add_changelog_entry().
Update calls accordingly.
(fixup_trailer): Use spawn_dch() method of ChangeLog class.
(process_options): dch_options became a list.
(main): Use add_section() and add_entry() methods of ChangeLog object.
Take care of upstream version since ChangeLog.add_section() does not
manage it anymore.
Update exception handling, ChangeLog.spawn_dch() can raise
"CommandExecFailed" exception.
Closes: #672954
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
to parse package and version out of a changelog section
|
|
|
|
and make it accessible from GitRepository to group
checkout/checkin/lookup.
|
|
|
|
making it easier to query versions. Add tests.
|