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.
|
|
|
|
|
2010-04-01 18:15:26 +02:00
|
|
|
--- ./lib/transaction.c.orig 2010-03-25 14:37:50.000000000 +0000
|
|
|
|
+++ ./lib/transaction.c 2010-03-25 14:38:27.000000000 +0000
|
|
|
|
@@ -212,7 +212,7 @@ static void rpmtsCheckDSIProblems(const
|
|
|
|
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,
|
2010-04-01 18:15:26 +02:00
|
|
|
- (adj_fs_blocks(dsi->bneeded) - dsi->bavail) * dsi->bsize);
|
|
|
|
+ (adj_fs_blocks(dsi->bneeded)) * dsi->bsize);
|
|
|
|
dsi->obneeded = dsi->bneeded;
|
|
|
|
}
|
2006-12-19 00:17:44 +01:00
|
|
|
}
|
2010-04-01 18:15:26 +02:00
|
|
|
@@ -222,7 +222,7 @@ static void rpmtsCheckDSIProblems(const
|
|
|
|
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,
|
2010-04-01 18:15:26 +02:00
|
|
|
- (adj_fs_blocks(dsi->ineeded) - dsi->iavail));
|
|
|
|
+ (adj_fs_blocks(dsi->ineeded)));
|
|
|
|
dsi->oineeded = dsi->ineeded;
|
|
|
|
}
|
2006-12-19 00:17:44 +01:00
|
|
|
}
|