2006-12-19 00:17:44 +01:00
|
|
|
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.
|
|
|
|
|
2008-09-12 20:37:28 +02:00
|
|
|
Index: lib/rpmts.c
|
|
|
|
===================================================================
|
|
|
|
--- lib/rpmts.c.orig
|
|
|
|
+++ lib/rpmts.c
|
2009-08-28 15:54:03 +02:00
|
|
|
@@ -924,14 +924,14 @@ void rpmtsCheckDSIProblems(const rpmts t
|
2006-12-19 00:17:44 +01:00
|
|
|
rpmpsAppend(ps, RPMPROB_DISKSPACE,
|
2008-09-12 20:37:28 +02:00
|
|
|
rpmteNEVRA(te), rpmteKey(te),
|
2006-12-19 00:17:44 +01:00
|
|
|
ts->filesystems[i], NULL, NULL,
|
|
|
|
- (adj_fs_blocks(dsi->bneeded) - dsi->bavail) * dsi->bsize);
|
|
|
|
+ (adj_fs_blocks(dsi->bneeded)) * dsi->bsize);
|
|
|
|
}
|
|
|
|
|
2008-09-12 20:37:28 +02:00
|
|
|
if (dsi->iavail >= 0 && adj_fs_blocks(dsi->ineeded) > dsi->iavail) {
|
2006-12-19 00:17:44 +01:00
|
|
|
rpmpsAppend(ps, RPMPROB_DISKNODES,
|
2008-09-12 20:37:28 +02:00
|
|
|
rpmteNEVRA(te), rpmteKey(te),
|
2006-12-19 00:17:44 +01:00
|
|
|
ts->filesystems[i], NULL, NULL,
|
|
|
|
- (adj_fs_blocks(dsi->ineeded) - dsi->iavail));
|
|
|
|
+ (adj_fs_blocks(dsi->ineeded)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ps = rpmpsFree(ps);
|