aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs5
1 files changed, 3 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index 3750fd0..4a01edf 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2067,10 +2067,11 @@ Pkg_free_header(pkg)
pkg->h = NULL;
void
-Pkg_build_info(pkg, fileno, provides_files=NULL)
+Pkg_build_info(pkg, fileno, provides_files=NULL, recommends=0)
URPM::Package pkg
int fileno
char *provides_files
+ int recommends
CODE:
if (pkg->info) {
char buff[65536*2];
@@ -2100,7 +2101,7 @@ Pkg_build_info(pkg, fileno, provides_files=NULL)
if (size < sizeof(buff)) write_nocheck(fileno, buff, size);
}
if (pkg->recommends && *pkg->recommends) {
- size = snprintf(buff, sizeof(buff), "@suggests@%s\n", pkg->recommends);
+ size = snprintf(buff, sizeof(buff), recommends ? "@recommends@%s\n" : "@suggests@%s\n", pkg->recommends);
if (size < sizeof(buff)) write_nocheck(fileno, buff, size);
}
if (pkg->summary && *pkg->summary) {