summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libopkg/pkg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libopkg/pkg.c b/libopkg/pkg.c
index 018c0c7..39f4b30 100644
--- a/libopkg/pkg.c
+++ b/libopkg/pkg.c
@@ -377,10 +377,8 @@ pkg_merge(pkg_t *oldpkg, pkg_t *newpkg)
oldpkg->provides_count = newpkg->provides_count;
newpkg->provides_count = 0;
- if (!oldpkg->provides) {
- oldpkg->provides = newpkg->provides;
- newpkg->provides = NULL;
- }
+ oldpkg->provides = newpkg->provides;
+ newpkg->provides = NULL;
}
if (!oldpkg->conflicts_count) {