michal-grzedzicki / rpms / rpm

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