Closed Tachi107 closed 1 year ago
Base: 78.45% // Head: 78.60% // Increases project coverage by +0.14%
:tada:
Coverage data is based on head (
dc09f1a
) compared to base (6938660
). Patch has no changes to coverable lines.:exclamation: Current head dc09f1a differs from pull request most recent head aa2c891. Consider uploading reports for the commit aa2c891 to get more accurate results
:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Forgot to mention that this would also change how debian/changelog
records the version. We currently only update it when bumping the major, minor or patch versions, while this updates and writes to it also when bumping the date. Is this OK for the PPA? If I recall correctly this shouldn't cause issues, and might even be better than before.
Hey @Tachi107. Nice job (again). You might want to try experimenting with the dctrl-tools package which I think can do exactly that - parse debian/control
files.
But I think what you want to do is parse debian/changelog
? In that case, you can do so like so:
$ dpkg-parsechangelog --show-field Version
0.1.1-1
I don't know if it will break in the PPA, but worst case is the Launchpad builder will let us know.
I've looked at dctrl-tools, but what they do is extract the Maintainer
field as-is, you cannot split it in two variables like DEBFULLNAME
and DEBEMAIL
. Not a big deal though, cut
works fine.
And no, I don't need to extract the version from d/changelog, because I have to overwrite it with what's in version.txt
This CI job will run when
version.txt
is updated in themaster
branch, and will push a new commit to thedebian
branch updating the changelog.DEBFULLNAME
andDEBEMAIL
are set by "parsing" the control file. If you know a true debian/control parser that could be used instead, preferably part of dpkg or devscripts, please let me know.This script currently only updates the single existing changelog entry. It could be possible to make it add a new entry each time instead, but it'd be a bit more involved and we would have to first check if it'd be compatible with our current PPA setup, which I personally don't know very well.
Closes #1119