diff options
-rw-r--r-- | libopkg/pkg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libopkg/pkg.c b/libopkg/pkg.c index c41629c..b01db61 100644 --- a/libopkg/pkg.c +++ b/libopkg/pkg.c @@ -358,6 +358,9 @@ int pkg_merge(pkg_t *oldpkg, pkg_t *newpkg, int set_status) return 0; } + if (!oldpkg->auto_installed) + oldpkg->auto_installed = newpkg->auto_installed; + if (!oldpkg->src) oldpkg->src = newpkg->src; if (!oldpkg->dest) |