summaryrefslogtreecommitdiff
path: root/src/fix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fix.c')
-rw-r--r--src/fix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fix.c b/src/fix.c
index 60bbfbf..ae068b7 100644
--- a/src/fix.c
+++ b/src/fix.c
@@ -67,6 +67,7 @@ static const struct apk_option_group optgroup_applet = {
static int mark_recalculate(apk_hash_item item, void *ctx)
{
struct apk_db_dir *dir = (struct apk_db_dir *) item;
+ if (dir->refs == 0) return 0;
dir->update_permissions = 1;
return 0;
}