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-14 15:19:10 +0200 |
commit | 8d1d10d561a07520ccd580d636708a8cfa9e45e0 (patch) | |
tree | 4f535eaced1f06088f42d4df6cc85f582581642a /URPM.xs | |
parent | e3439c2e9f9e02b0c95f892978c6ea16aa3afc1e (diff) | |
download | perl-URPM-8d1d10d561a07520ccd580d636708a8cfa9e45e0.tar perl-URPM-8d1d10d561a07520ccd580d636708a8cfa9e45e0.tar.gz perl-URPM-8d1d10d561a07520ccd580d636708a8cfa9e45e0.tar.bz2 perl-URPM-8d1d10d561a07520ccd580d636708a8cfa9e45e0.tar.xz perl-URPM-8d1d10d561a07520ccd580d636708a8cfa9e45e0.zip |
add support for generating recommends in synthesis
aka having @recommends@ lines instead of @suggests@ ones
Conflicts:
NEWS
URPM.xs
Diffstat (limited to 'URPM.xs')
-rw-r--r-- | URPM.xs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2356,10 +2356,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]; @@ -2389,7 +2390,7 @@ Pkg_build_info(pkg, fileno, provides_files=NULL) if (size < sizeof(buff)) write_nocheck(fileno, buff, size); } if (pkg->suggests && *pkg->suggests) { - size = snprintf(buff, sizeof(buff), "@suggests@%s\n", pkg->suggests); + size = snprintf(buff, sizeof(buff), recommends ? "@recommends@%s\n" : "@suggests@%s\n", pkg->suggests); if (size < sizeof(buff)) write_nocheck(fileno, buff, size); } if (pkg->summary && *pkg->summary) { |