public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] debianize: Switch version-existing check to dpkg-parsechangelog
@ 2020-04-29  7:36 Jan Kiszka
  2020-05-07 21:02 ` Baurzhan Ismagulov
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2020-04-29  7:36 UTC (permalink / raw)
  To: isar-users; +Cc: Henning Schild

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] debianize: Switch version-existing check to dpkg-parsechangelog
  2020-04-29  7:36 [PATCH] debianize: Switch version-existing check to dpkg-parsechangelog Jan Kiszka
@ 2020-05-07 21:02 ` Baurzhan Ismagulov
  2020-05-08  5:36   ` Henning Schild
  0 siblings, 1 reply; 3+ messages in thread
From: Baurzhan Ismagulov @ 2020-05-07 21:02 UTC (permalink / raw)
  To: isar-users

On Wed, Apr 29, 2020 at 09:36:40AM +0200, Jan Kiszka wrote:
> This also reduces the check to the version, ignoring the package name.

I had applied this as well, it doesn't affect v4, does it?

With kind regards,
Baurzhan.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] debianize: Switch version-existing check to dpkg-parsechangelog
  2020-05-07 21:02 ` Baurzhan Ismagulov
@ 2020-05-08  5:36   ` Henning Schild
  0 siblings, 0 replies; 3+ messages in thread
From: Henning Schild @ 2020-05-08  5:36 UTC (permalink / raw)
  To: Baurzhan Ismagulov; +Cc: isar-users

Am Thu, 7 May 2020 23:02:05 +0200
schrieb Baurzhan Ismagulov <ibr@radix50.net>:

> On Wed, Apr 29, 2020 at 09:36:40AM +0200, Jan Kiszka wrote:
> > This also reduces the check to the version, ignoring the package
> > name.  
> 
> I had applied this as well, it doesn't affect v4, does it?

This one is fine. Stand alone as it is.

Henning

> With kind regards,
> Baurzhan.
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-08  5:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29  7:36 [PATCH] debianize: Switch version-existing check to dpkg-parsechangelog Jan Kiszka
2020-05-07 21:02 ` Baurzhan Ismagulov
2020-05-08  5:36   ` Henning Schild

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox