- allow turning off cache regeneration on each run for rpm >= 4.4.4
authorpmatilai <pmatilai>
Sun, 19 Mar 2006 12:13:41 +0000 (12:13 +0000)
committerpmatilai <pmatilai>
Sun, 19 Mar 2006 12:13:41 +0000 (12:13 +0000)
apt-pkg/rpm/rpmsystem.cc

index 36d1ff5..7398078 100644 (file)
@@ -592,8 +592,9 @@ unsigned long rpmSystem::OptionsHash() const
 #if RPM_VERSION >= 0x040404
    // This is really draconian but until apt can made somehow deal with
    // runtime dependencies the cache has to be rebuilt for each run for
-   // accuracy.
-   HashTime(Hash);
+   // accuracy. Allow turning it off via configuration if not needed.
+   if (_config->FindB("RPM::RuntimeDeps", true) == true)
+      HashTime(Hash);
 #endif
    return Hash;
 }