diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-08-27 16:07:43 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-09-12 23:11:58 +0200 |
commit | e83253c9db241591f587b8d83e1503528df1f49e (patch) | |
tree | f914bbbafc8b12bfe5bf23a325063358c76d8aab /URPM.xs | |
parent | ed6bc6d37bf2a353fbba2c7235b7fab523a8f350 (diff) | |
download | perl-URPM-e83253c9db241591f587b8d83e1503528df1f49e.tar perl-URPM-e83253c9db241591f587b8d83e1503528df1f49e.tar.gz perl-URPM-e83253c9db241591f587b8d83e1503528df1f49e.tar.bz2 perl-URPM-e83253c9db241591f587b8d83e1503528df1f49e.tar.xz perl-URPM-e83253c9db241591f587b8d83e1503528df1f49e.zip |
add support for generating recommends in synthesis
aka having @recommends@ lines instead of @suggests@ ones
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) { |