[PATCH] setup: update non-experimental packages too when Exp is selected

Andy Koppe andy.koppe@gmail.com
Thu Aug 19 05:30:00 GMT 2010


At the moment, non-experimental packages don't get updated when 'Exp'
is selected. This was reported at
http://cygwin.com/ml/cygwin/2010-08/msg00460.html.

The fix turned out to be quite simple.

Andy


ChangeLog:
        * package_meta.h (packagemeta::trustp): Update non-experimental
        packages too when Exp is selected.

Index: package_meta.h
===================================================================
RCS file: /cvs/cygwin-apps/setup/package_meta.h,v
retrieving revision 2.38
diff -u -r2.38 package_meta.h
--- package_meta.h      13 Dec 2009 19:23:43 -0000      2.38
+++ package_meta.h      19 Aug 2010 05:06:47 -0000
@@ -94,9 +94,9 @@
   std::string action_caption () const;
   packageversion trustp (trusts const t) const
   {
-    return t == TRUST_PREV ? (prev ? prev : (curr ? curr : installed))
-         : t == TRUST_CURR ? (curr ? curr : installed)
-        : exp ? exp : installed;
+    return t == TRUST_PREV && prev ? prev
+         : t == TRUST_TEST && exp ? exp
+         : curr ? curr : installed;
   }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exp.patch
Type: application/octet-stream
Size: 745 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20100819/9b2aee05/attachment.obj>


More information about the Cygwin-apps mailing list