aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-06-12 13:11:19 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-06-12 13:11:19 +0000
commit9107fb60aa78fd7796cad742915782f01f402ed3 (patch)
treee0a9b88a50f76e4f4d20cf6a7ecd2d0142f70e29
parent7706956d1247d045e1c058068e62b6e095fa821a (diff)
downloadrpmtools-9107fb60aa78fd7796cad742915782f01f402ed3.tar
rpmtools-9107fb60aa78fd7796cad742915782f01f402ed3.tar.gz
rpmtools-9107fb60aa78fd7796cad742915782f01f402ed3.tar.bz2
rpmtools-9107fb60aa78fd7796cad742915782f01f402ed3.tar.xz
rpmtools-9107fb60aa78fd7796cad742915782f01f402ed3.zip
RPMTAG_SOURCEPACKAGE is deprecated, use RPMTAG_SOURCERPM
-rw-r--r--parsehdlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parsehdlist.c b/parsehdlist.c
index 69472b8..43f8af1 100644
--- a/parsehdlist.c
+++ b/parsehdlist.c
@@ -175,7 +175,7 @@ void print_list_name(Header header, char *format, char print_sep, int extension)
char *name = get_name(header, RPMTAG_NAME);
char *version = get_name(header, RPMTAG_VERSION);
char *release = get_name(header, RPMTAG_RELEASE);
- char *arch = headerIsEntry(header, RPMTAG_SOURCEPACKAGE) ? "src" : get_name(header, RPMTAG_ARCH);
+ char *arch = headerIsEntry(header, RPMTAG_SOURCERPM) ? get_name(header, RPMTAG_ARCH) : "src";
char *buff = alloca(strlen(name) + strlen(version) + strlen(release) + strlen(arch) + 1+1+1 + 5);
printf(format, name, "");