Do not install source rpms with --freshen

Resolves: rhbz#1402856
This commit is contained in:
Florian Festi 2017-07-12 16:34:22 +02:00
parent 4c4b64925c
commit 10c1d10d63
1 changed files with 4 additions and 0 deletions

View File

@ -546,6 +546,10 @@ restart:
}
if (headerIsSource(h)) {
if (ia->installInterfaceFlags & INSTALL_FRESHEN) {
headerFree(h);
continue;
}
rpmlog(RPMLOG_DEBUG, "\tadded source package [%d]\n",
eiu->numSRPMS);
eiu->sourceURL = xrealloc(eiu->sourceURL,