poldek: poldek/install3/requirements.c - bugfix: don't remove older package...

megabajt megabajt at pld-linux.org
Wed Aug 20 22:15:58 CEST 2008


Author: megabajt                     Date: Wed Aug 20 20:15:57 2008 GMT
Module: poldek                        Tag: HEAD
---- Log message:
- bugfix: don't remove older packages from successors when POLDEK_TS_DOWNGRADE is set

---- Files affected:
poldek/poldek/install3:
   requirements.c (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: poldek/poldek/install3/requirements.c
diff -u poldek/poldek/install3/requirements.c:1.10 poldek/poldek/install3/requirements.c:1.11
--- poldek/poldek/install3/requirements.c:1.10	Sun May 25 00:56:40 2008
+++ poldek/poldek/install3/requirements.c	Wed Aug 20 22:15:52 2008
@@ -33,7 +33,7 @@
         if (cmprc > 0 && poldek_ts_issetf(ictx->ts, POLDEK_TS_DOWNGRADE))
             continue;
             
-        if (cmprc < 0)
+        if (cmprc < 0 && !poldek_ts_issetf(ictx->ts, POLDEK_TS_DOWNGRADE))
             continue;
         
         n_array_push(tmp, pkg_link(p));
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/poldek/poldek/install3/requirements.c?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list