dcavalca / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
9527e8
diff -up rpm-4.11.3/lib/depends.c.dependson rpm-4.11.3/lib/depends.c
9527e8
--- rpm-4.11.3/lib/depends.c.dependson	2019-10-04 10:46:35.399545965 +0300
9527e8
+++ rpm-4.11.3/lib/depends.c	2019-10-04 10:47:10.693542015 +0300
9527e8
@@ -117,7 +117,8 @@ static int removePackage(rpmts ts, Heade
9527e8
 	tsmem->order = xrealloc(tsmem->order, sizeof(*tsmem->order) * tsmem->orderAlloced);
9527e8
     }
9527e8
 
9527e8
-    rpmteSetDependsOn(p, depends);
9527e8
+    if (depends)
9527e8
+	rpmteSetDependsOn(p, depends);
9527e8
 
9527e8
     tsmem->order[tsmem->orderCount] = p;
9527e8
     tsmem->orderCount++;