Initialize on declaration, cosmetics only...
This commit is contained in:
parent
37f85b81bb
commit
1c1faec7a3
|
@ -74,9 +74,7 @@ static int handleInstInstalledFile(const rpmts ts, rpmte p, rpmfi fi,
|
||||||
{
|
{
|
||||||
unsigned int fx = rpmfiFX(fi);
|
unsigned int fx = rpmfiFX(fi);
|
||||||
rpmfs fs = rpmteGetFileStates(p);
|
rpmfs fs = rpmteGetFileStates(p);
|
||||||
int isCfgFile;
|
int isCfgFile = ((rpmfiFFlags(otherFi) | rpmfiFFlags(fi)) & RPMFILE_CONFIG);
|
||||||
|
|
||||||
isCfgFile = ((rpmfiFFlags(otherFi) | rpmfiFFlags(fi)) & RPMFILE_CONFIG);
|
|
||||||
|
|
||||||
if (XFA_SKIPPING(rpmfsGetAction(fs, fx)))
|
if (XFA_SKIPPING(rpmfsGetAction(fs, fx)))
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -123,8 +121,7 @@ static int handleInstInstalledFile(const rpmts ts, rpmte p, rpmfi fi,
|
||||||
|
|
||||||
/* Determine config file dispostion, skipping missing files (if any). */
|
/* Determine config file dispostion, skipping missing files (if any). */
|
||||||
if (isCfgFile) {
|
if (isCfgFile) {
|
||||||
int skipMissing =
|
int skipMissing = ((rpmtsFlags(ts) & RPMTRANS_FLAG_ALLFILES) ? 0 : 1);
|
||||||
((rpmtsFlags(ts) & RPMTRANS_FLAG_ALLFILES) ? 0 : 1);
|
|
||||||
rpmFileAction action = rpmfiDecideFate(otherFi, fi, skipMissing);
|
rpmFileAction action = rpmfiDecideFate(otherFi, fi, skipMissing);
|
||||||
rpmfsSetAction(fs, fx, action);
|
rpmfsSetAction(fs, fx, action);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue