Michael Schröder 2023-12-13 13:55:37 +00:00 committed by Git OBS Bridge
parent aa7c464ad1
commit 87d7dcbddc

View File

@ -139,7 +139,7 @@ decoding works, otherwise iso-8859-1.
/**
+ * Retrieve text and convert to locale.
+ */
+static int localeTag(Header h, rpmTag tag, rpmtd td)
+static int localeTag(Header h, rpmTag tag, rpmtd td, headerGetFlags hgflags)
+{
+ int rc;
+ rc = headerGet(h, tag, td, HEADERGET_ALLOC);
@ -174,12 +174,12 @@ decoding works, otherwise iso-8859-1.
+static int changelognameTag(Header h, rpmtd td, headerGetFlags hgflags)
+{
+ return localeTag(h, RPMTAG_CHANGELOGNAME, td);
+ return localeTag(h, RPMTAG_CHANGELOGNAME, td, hgflags);
+}
+
+static int changelogtextTag(Header h, rpmtd td, headerGetFlags hgflags)
+{
+ return localeTag(h, RPMTAG_CHANGELOGTEXT, td);
+ return localeTag(h, RPMTAG_CHANGELOGTEXT, td, hgflags);
+}
+
/**