- Fix thinko in srpm dependency parsing
authorpmatilai <pmatilai>
Mon, 6 Mar 2006 21:21:50 +0000 (21:21 +0000)
committerpmatilai <pmatilai>
Mon, 6 Mar 2006 21:21:50 +0000 (21:21 +0000)
apt-pkg/rpm/rpmsrcrecords.cc

index 49256d4..1fdb148 100644 (file)
@@ -456,8 +456,7 @@ bool rpmSrcRecordParser::BuildDepends(vector<pkgSrcRecords::Parser::BuildDepRec>
            rpmds ds = rpmdsSingle(RPMTAG_PROVIDENAME,
                                   namel[i], verl?verl[i]:NULL, flagl[i]);
            rpmdsRpmlib(&rpmlibProv, NULL);
-           rpmdsSearch(rpmlibProv, ds);
-           int res = rpmdsResult(ds);
+           int res = rpmdsSearch(rpmlibProv, ds) >= 0;
            rpmdsFree(ds);
            rpmdsFree(rpmlibProv);
 #elif RPM_VERSION >= 0x040100