Make rpmdeps honor RPM_BUILD_ROOT if set
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 1 Dec 2010 09:22:32 +0000 (11:22 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 1 Dec 2010 09:41:28 +0000 (11:41 +0200)
- rpmdeps calls the internal dependency generator as an external
  dependency generator (yes its more than a bit wacky), and the
  internal generator needs to know the buildroot as path patterns
  expect non-buildroot paths for accuracy.

tools/rpmdeps.c

index 5f34c2b..94513f1 100644 (file)
@@ -82,7 +82,7 @@ char buf[BUFSIZ];
     xx = argvSort(av, NULL);
 
     /* Build file class dictionary. */
-    fc = rpmfcNew();
+    fc = rpmfcCreate(getenv("RPM_BUILD_ROOT"), 0);
     xx = rpmfcClassify(fc, av, NULL);
 
     /* Build file/package dependency dictionary. */