[Rpm-maint] Fix ordering with --nodeps

Michael Schroeder mls at suse.de
Wed Jun 13 11:01:12 UTC 2007


Here's a small fix that was part of the patchrpm patch:

--- rpminstall.c.orig	2007-02-09 16:28:40.000000000 +0100
+++ rpminstall.c	2007-02-09 16:31:17.000000000 +0100
@@ -679,6 +679,8 @@
     }
 
     if (eiu->numRPMS && !(ia->installInterfaceFlags & INSTALL_NOORDER)) {
+	if (ia->installInterfaceFlags & INSTALL_NODEPS)
+	    rpmalMakeIndex(ts->addedPackages);
 	if (rpmtsOrder(ts)) {
 	    eiu->numFailed = eiu->numPkgs;
 	    stopInstall = 1;

rpmalMakeIndex is normally called by rpmtsCheck(), which gets skipped
if --nodeps is used.

Cheers,
  Michael.

-- 
Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}



More information about the Rpm-maint mailing list