ref: refs/heads/master
commit 91d48d0918792d30493b05fe59ddcbcc5e38fed2
Author: Michael Schroeder
Date: Wed Jul 22 17:43:52 2009 +0200
- don't skip directories and empty files in inode count
---
ext/repo_rpmdb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c
index ed33bc9..117e850 100644
--- a/ext/repo_rpmdb.c
+++ b/ext/repo_rpmdb.c
@@ -537,7 +537,7 @@ adddudata(Pool *pool, Repo *repo, Repodata *data, Solvable *s, RpmHead *rpmhead,
sat_free(fsz);
return;
}
- /* stupid rpm recodrs sizes of directories, so we have to check the mode */
+ /* stupid rpm records sizes of directories, so we have to check the mode */
fm = headint16array(rpmhead, TAG_FILEMODES, &fszc);
if (!fm || fc != fszc)
{
@@ -623,11 +623,11 @@ adddudata(Pool *pool, Repo *repo, Repodata *data, Solvable *s, RpmHead *rpmhead,
fkb = sat_calloc(dic, sizeof(unsigned int));
for (i = 0; i < fc; i++)
{
- if (fsz[i] == 0 || !S_ISREG(fm[i]))
- continue;
if (di[i] >= dic)
continue;
fn[di[i]]++;
+ if (fsz[i] == 0 || !S_ISREG(fm[i]))
+ continue;
fkb[di[i]] += fsz[i] / 1024 + 1;
}
sat_free(fsz);
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org