Michael Schröder
a6846b83ca
* updated python bindings * new transaction ordering code OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=40
25 lines
914 B
Diff
25 lines
914 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.
|
|
|
|
--- ./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,
|
|
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);
|
|
dsi->obneeded = dsi->bneeded;
|
|
}
|
|
}
|
|
@@ -222,7 +222,7 @@ static void rpmtsCheckDSIProblems(const
|
|
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)));
|
|
dsi->oineeded = dsi->ineeded;
|
|
}
|
|
}
|