- Oops... versionless dependencies were not entered into depcache at all,
authorpmatilai <pmatilai>
Fri, 7 Apr 2006 12:50:51 +0000 (12:50 +0000)
committerpmatilai <pmatilai>
Fri, 7 Apr 2006 12:50:51 +0000 (12:50 +0000)
  small miracle *anything* worked before

apt-pkg/rpm/rpmhandler.cc

index ee29edc..77a65cb 100644 (file)
@@ -1228,10 +1228,13 @@ bool RPMRepomdHandler::Depends(unsigned int Type, vector<Dependency*> &Deps)
             Op = pkgCache::Dep::Less;
            RpmOp = RPMSENSE_LESS;
         } else {
-           Op = pkgCache::Dep::NoOp;
-           RpmOp = RPMSENSE_ANY;
+           // erm, unknown dependency type?
         }
+      } else {
+        Op = pkgCache::Dep::NoOp;
+        RpmOp = RPMSENSE_ANY;
       }
+
       if (InternalDep((char*)depname, depver.c_str(), RpmOp) == true) {
         continue;
       }