From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Cc: Henning Schild <henning.schild@siemens.com>
Subject: [PATCH] debianize: Switch version-existing check to dpkg-parsechangelog
Date: Wed, 29 Apr 2020 09:36:40 +0200 [thread overview]
Message-ID: <c04b8e0b-07be-304d-5ef7-9725bde1874f@siemens.com> (raw)
From: Jan Kiszka <jan.kiszka@siemens.com>
This also reduces the check to the version, ignoring the package name.
Suggested-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
meta/classes/debianize.bbclass | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/meta/classes/debianize.bbclass b/meta/classes/debianize.bbclass
index e77be232..764477c8 100644
--- a/meta/classes/debianize.bbclass
+++ b/meta/classes/debianize.bbclass
@@ -34,9 +34,8 @@ ${PN} (${changelog_v}) UNRELEASED; urgency=low
-- ${MAINTAINER} ${date}
EOF
if [ -f ${WORKDIR}/changelog ]; then
- if head -1 "${WORKDIR}"/changelog | \
- grep -q -e "^${PN} (${changelog_v})"
- then
+ latest_version=$(dpkg-parsechangelog -l ${WORKDIR}/changelog -S Version)
+ if [ "${latest_version}" = "${changelog_v}" ]; then
# entry for our version already there, use unmodified
rm ${S}/debian/changelog
else
--
2.16.4
next reply other threads:[~2020-04-29 7:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-29 7:36 Jan Kiszka [this message]
2020-05-07 21:02 ` Baurzhan Ismagulov
2020-05-08 5:36 ` Henning Schild
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c04b8e0b-07be-304d-5ef7-9725bde1874f@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox