25f00b6cb5
Copy from Base:System/rpm based on submit request 18841 from user mlschroe OBS-URL: https://build.opensuse.org/request/show/18841 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpm?expand=0&rev=84
26 lines
891 B
Diff
26 lines
891 B
Diff
Make the numbers reported for diskspace problems more user
|
|
friendly. Probably a bad idea, as it changes the semantics. Instead,
|
|
the messages should be changed.
|
|
|
|
Index: lib/rpmts.c
|
|
===================================================================
|
|
--- lib/rpmts.c.orig
|
|
+++ lib/rpmts.c
|
|
@@ -924,14 +924,14 @@ void rpmtsCheckDSIProblems(const rpmts t
|
|
rpmpsAppend(ps, RPMPROB_DISKSPACE,
|
|
rpmteNEVRA(te), rpmteKey(te),
|
|
ts->filesystems[i], NULL, NULL,
|
|
- (adj_fs_blocks(dsi->bneeded) - dsi->bavail) * dsi->bsize);
|
|
+ (adj_fs_blocks(dsi->bneeded)) * dsi->bsize);
|
|
}
|
|
|
|
if (dsi->iavail >= 0 && adj_fs_blocks(dsi->ineeded) > dsi->iavail) {
|
|
rpmpsAppend(ps, RPMPROB_DISKNODES,
|
|
rpmteNEVRA(te), rpmteKey(te),
|
|
ts->filesystems[i], NULL, NULL,
|
|
- (adj_fs_blocks(dsi->ineeded) - dsi->iavail));
|
|
+ (adj_fs_blocks(dsi->ineeded)));
|
|
}
|
|
}
|
|
ps = rpmpsFree(ps);
|