- read-only, not exclusive rpmdb lock for the initial dependency processing
authorpmatilai <pmatilai>
Mon, 16 Jan 2006 23:17:30 +0000 (23:17 +0000)
committerpmatilai <pmatilai>
Mon, 16 Jan 2006 23:17:30 +0000 (23:17 +0000)
apt-pkg/rpm/rpmhandler.cc

index 42b486b..eede5cf 100644 (file)
@@ -371,7 +371,7 @@ RPMDBHandler::RPMDBHandler(bool WriteLock)
    Handler = rpmtsCreate();
    rpmtsSetVSFlags(Handler, (rpmVSFlags_e)-1);
    rpmtsSetRootDir(Handler, Dir.c_str());
-   if (rpmtsOpenDB(Handler, WriteLock?O_RDWR:O_RDONLY) != 0)
+   if (rpmtsOpenDB(Handler, O_RDONLY) != 0)
    {
       _error->Error(_("could not open RPM database"));
       return;
@@ -380,7 +380,7 @@ RPMDBHandler::RPMDBHandler(bool WriteLock)
    const char *RootDir = NULL;
    if (!Dir.empty())
       RootDir = Dir.c_str();
-   if (rpmdbOpen(RootDir, &Handler, WriteLock?O_RDWR:O_RDONLY, 0644) != 0)
+   if (rpmdbOpen(RootDir, &Handler, O_RDONLY, 0644) != 0)
    {
       _error->Error(_("could not open RPM database"));
       return;