Age | Commit message (Collapse) | Author |
|
via
2to3-3.4 -w -f print .
to work towards python3 support
Gbp-Dch: Ignore
|
|
Allow --git-author to work if either author or email is not specified
in the git config, taking the other config option into account.
|
|
since the later doesn't exist in python3
|
|
to avoid accidental usage. Use DebianSource.is_native instead.
|
|
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
|
|
|
|
|
|
this will allow us to reparse the changelog after manipulation with dch.
|
|
to parse package and version out of a changelog section
|
|
|
|
|
|
making it easier to query versions. Add tests.
|