aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2014-08-27 16:15:29 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2014-09-12 23:11:56 +0200
commit47f12646b34ad10fca581e8946ade89f18765483 (patch)
tree3f526418bb2fe32524d6ca208d5f39e9f510a6b5 /URPM.xs
parent3db43b0cf315a4c0c7b78787f637db04045f90ed (diff)
downloadperl-URPM-47f12646b34ad10fca581e8946ade89f18765483.tar
perl-URPM-47f12646b34ad10fca581e8946ade89f18765483.tar.gz
perl-URPM-47f12646b34ad10fca581e8946ade89f18765483.tar.bz2
perl-URPM-47f12646b34ad10fca581e8946ade89f18765483.tar.xz
perl-URPM-47f12646b34ad10fca581e8946ade89f18765483.zip
rename "suggests" field to "recommends"
as this really what it is
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs16
1 files changed, 8 insertions, 8 deletions
diff --git a/URPM.xs b/URPM.xs
index 46fc2a9..0681859 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -50,7 +50,7 @@ struct s_Package {
unsigned flag;
char *info;
char *requires;
- char *suggests;
+ char *recommends;
char *obsoletes;
char *conflicts;
char *provides;
@@ -763,8 +763,8 @@ pack_header(const URPM__Package pkg) {
if (pkg->filesize == 0) pkg->filesize = get_filesize(pkg->h);
if (pkg->requires == NULL)
pkg->requires = pack_list(pkg->h, RPMTAG_REQUIRENAME, RPMTAG_REQUIREFLAGS, RPMTAG_REQUIREVERSION);
- if (pkg->suggests == NULL)
- pkg->suggests = pack_list(pkg->h, RPMTAG_RECOMMENDNAME, 0, 0);
+ if (pkg->recommends == NULL)
+ pkg->recommends = pack_list(pkg->h, RPMTAG_RECOMMENDNAME, 0, 0);
if (pkg->obsoletes == NULL)
pkg->obsoletes = pack_list(pkg->h, RPMTAG_OBSOLETENAME, RPMTAG_OBSOLETEFLAGS, RPMTAG_OBSOLETEVERSION);
if (pkg->conflicts == NULL)
@@ -1051,7 +1051,7 @@ parse_line(AV *depslist, HV *provides, HV *obsoletes, URPM__Package pkg, char *b
if (!strcmp(tag, "requires"))
ptr = &pkg->requires;
else if (!strcmp(tag, "suggests"))
- ptr = &pkg->suggests;
+ ptr = &pkg->recommends;
else if (!strcmp(tag, "obsoletes"))
ptr = &pkg->obsoletes;
else if (!strcmp(tag, "conflicts"))
@@ -1417,7 +1417,7 @@ Pkg_DESTROY(pkg)
CODE:
free(pkg->info);
free(pkg->requires);
- free(pkg->suggests);
+ free(pkg->recommends);
free(pkg->obsoletes);
free(pkg->conflicts);
free(pkg->provides);
@@ -1871,7 +1871,7 @@ Pkg_obsoletes_nosense(pkg)
case 1: tag = RPMTAG_CONFLICTNAME; s = pkg->conflicts; break;
case 2: tag = RPMTAG_PROVIDENAME; s = pkg->provides; break;
case 3: tag = RPMTAG_REQUIRENAME; s = pkg->requires; break;
- case 4: tag = RPMTAG_RECOMMENDNAME;s = pkg->suggests; break;
+ case 4: tag = RPMTAG_RECOMMENDNAME;s = pkg->recommends; break;
default: tag = RPMTAG_OBSOLETENAME; s = pkg->obsoletes; break;
}
return_list_str(s, pkg->h, tag, 0, 0, callback_list_str_xpush, NULL);
@@ -2098,8 +2098,8 @@ Pkg_build_info(pkg, fileno, provides_files=NULL)
size = snprintf(buff, sizeof(buff), "@requires@%s\n", pkg->requires);
if (size < sizeof(buff)) write_nocheck(fileno, buff, size);
}
- if (pkg->suggests && *pkg->suggests) {
- size = snprintf(buff, sizeof(buff), "@suggests@%s\n", pkg->suggests);
+ if (pkg->recommends && *pkg->recommends) {
+ size = snprintf(buff, sizeof(buff), "@suggests@%s\n", pkg->recommends);
if (size < sizeof(buff)) write_nocheck(fileno, buff, size);
}
if (pkg->summary && *pkg->summary) {