diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-22 16:02:41 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-22 16:02:41 +0000 |
commit | ec9e866fd7198d124dcd1f582b18d9db7b19f89d (patch) | |
tree | 6966f9c5473919a8d8751f2bff788a21684132da | |
parent | 84309331357288d3de5fa1ecb563c5aa7e92f9b3 (diff) | |
download | perl-URPM-ec9e866fd7198d124dcd1f582b18d9db7b19f89d.tar perl-URPM-ec9e866fd7198d124dcd1f582b18d9db7b19f89d.tar.gz perl-URPM-ec9e866fd7198d124dcd1f582b18d9db7b19f89d.tar.bz2 perl-URPM-ec9e866fd7198d124dcd1f582b18d9db7b19f89d.tar.xz perl-URPM-ec9e866fd7198d124dcd1f582b18d9db7b19f89d.zip |
(pack_header) add intended brackets that pixel forgot to add in commit
r225637 on Thu Aug 9 2007:
'- "suggests" are no more handled as "requires"
- resolve_requested support "suggests": a newly suggested package is installed
as if required (can be disabled with option no_suggests)
nb: URPM.xs change is quite complex since suggests are mostly seen as requires
inside rpmlib.'
-rw-r--r-- | URPM.xs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -765,9 +765,10 @@ pack_header(const URPM__Package pkg) { pkg->info = memcpy(malloc(p-buff), buff, p-buff); } if (pkg->filesize == 0) pkg->filesize = get_filesize(pkg->h); - if (pkg->requires == NULL && pkg->suggests == NULL) + if (pkg->requires == NULL && pkg->suggests == NULL) { pkg->requires = pack_list(pkg->h, RPMTAG_REQUIRENAME, RPMTAG_REQUIREFLAGS, RPMTAG_REQUIREVERSION); pkg->suggests = pack_list(pkg->h, RPMTAG_SUGGESTSNAME, 0, 0); + } if (pkg->obsoletes == NULL) pkg->obsoletes = pack_list(pkg->h, RPMTAG_OBSOLETENAME, RPMTAG_OBSOLETEFLAGS, RPMTAG_OBSOLETEVERSION); if (pkg->conflicts == NULL) |