]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- too fast... fixed finding package by name alone (for packages with Epoch>0)
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 27 Nov 2003 16:15:16 +0000 (16:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    poldek-epoch0.patch -> 1.2

poldek-epoch0.patch

index 5555822993e05aa6804ef5807c8fac8af78d1afc..3e4dbf0c3ba435ae8a7f1b1a481c91a31a1291b9 100644 (file)
@@ -17,7 +17,7 @@ diff -Nur poldek-0.18.1.orig/pkg.c poldek-0.18.1/pkg.c
          return 1;
      
 -    if (capreq_has_epoch(req) && pkg->epoch) {    
-+    if (capreq_has_epoch(req)) {
++    if (capreq_has_epoch(req) && (pkg->epoch || pkg->ver)) {
          cmprc = pkg->epoch - capreq_epoch(req);
          if (cmprc != 0)
              return rel_match(cmprc, req);
@@ -41,7 +41,7 @@ diff -Nur poldek-0.18.1.orig/pkgset.c poldek-0.18.1/pkgset.c
      int rc = 1;
      
 -    if (pdef->pkg->epoch && pkg->epoch != pdef->pkg->epoch)
-+    if (pkg->epoch != pdef->pkg->epoch)
++    if ((pdef->pkg->epoch /* || pdef->pkg->ver */) && pkg->epoch != pdef->pkg->epoch)
          rc = 0;
      
      if (rc && *pdef->pkg->ver) 
This page took 0.055651 seconds and 4 git commands to generate.