summaryrefslogtreecommitdiff
path: root/lib/tagexts.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-11-29 12:28:47 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-11-29 12:28:47 +0200
commit8c925108fb90ebb0394874adbc1078d213cc40cf (patch)
treef42cdf105adc63067cd014a8f620f12286d05c1e /lib/tagexts.c
parent4ddd89ce6924d7b6a0988d93d2b6a8cbe9a30a60 (diff)
downloadlibrpm-tizen-8c925108fb90ebb0394874adbc1078d213cc40cf.tar.gz
librpm-tizen-8c925108fb90ebb0394874adbc1078d213cc40cf.tar.bz2
librpm-tizen-8c925108fb90ebb0394874adbc1078d213cc40cf.zip
Eliminate dead RPMTAG_INSTALLPREFIX tag extension
- This hasn't been functional since rpm 4.6 at least: the tag is marked internal so it's not recognized as a valid query tag, and there's no point supporting this anyway, it was already deprecated backwards compatibility hack in rpm 2.x in 1998 era.
Diffstat (limited to 'lib/tagexts.c')
-rw-r--r--lib/tagexts.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/tagexts.c b/lib/tagexts.c
index fa214116a..aca3209a6 100644
--- a/lib/tagexts.c
+++ b/lib/tagexts.c
@@ -151,31 +151,6 @@ exit:
}
/**
- * Retrieve install prefixes.
- * @param h header
- * @retval td tag data container
- * @return 1 on success
- */
-static int instprefixTag(Header h, rpmtd td, headerGetFlags hgflags)
-{
- struct rpmtd_s prefixes;
- int flags = HEADERGET_MINMEM;
-
- if (headerGet(h, RPMTAG_INSTALLPREFIX, td, flags)) {
- return 1;
- } else if (headerGet(h, RPMTAG_INSTPREFIXES, &prefixes, flags)) {
- /* only return the first prefix of the array */
- td->type = RPM_STRING_TYPE;
- td->data = xstrdup(rpmtdGetString(&prefixes));
- td->flags = RPMTD_ALLOCED;
- rpmtdFreeData(&prefixes);
- return 1;
- }
-
- return 0;
-}
-
-/**
* Retrieve trigger info.
* @param h header
* @retval td tag data container
@@ -696,7 +671,6 @@ static const struct headerTagFunc_s rpmHeaderTagExtensions[] = {
{ RPMTAG_ORIGFILENAMES, origfilenamesTag },
{ RPMTAG_FILEPROVIDE, fileprovideTag },
{ RPMTAG_FILEREQUIRE, filerequireTag },
- { RPMTAG_INSTALLPREFIX, instprefixTag },
{ RPMTAG_TRIGGERCONDS, triggercondsTag },
{ RPMTAG_TRIGGERTYPE, triggertypeTag },
{ RPMTAG_LONGFILESIZES, longfilesizesTag },