This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix cygcheck -p (was: Cygwin package search down for a while)


On 2013-08-23 14:22, Christopher Faylor wrote:
On Fri, Aug 23, 2013 at 01:27:13PM -0400, Christopher Faylor wrote:
I'm working on bringing Cygwin's package search into the multi-arch
world so it will be down for a while while I tweak things.

This went much faster than I expected.  The new package interface allows
you to switch between x86 and x86_64 when searching for or displaying
packages.

This interface now uses javascript to control which arch is displayed.

Patch to adapt 'cygcheck -p' for this change attached.


Yaakov

2013-08-23  Yaakov Selkowitz  <yselkowitz@...>

	* cygcheck.cc (base_url): Add appropriate arch parameter.

Index: cygcheck.cc
===================================================================
RCS file: /cvs/src/src/winsup/utils/cygcheck.cc,v
retrieving revision 1.139
diff -u -p -r1.139 cygcheck.cc
--- cygcheck.cc	7 Jul 2013 16:57:11 -0000	1.139
+++ cygcheck.cc	23 Aug 2013 19:40:26 -0000
@@ -2129,7 +2129,11 @@ static const char safe_chars[] = "$-_.+!
 
 /* the URL to query.  */
 static const char base_url[] =
-	"http://cygwin.com/cgi-bin2/package-grep.cgi?text=1&grep=";;
+#ifdef __x86_64__
+	"http://cygwin.com/cgi-bin2/package-grep.cgi?text=1&arch=x86_64&grep=";;
+#else
+	"http://cygwin.com/cgi-bin2/package-grep.cgi?text=1&arch=x86&grep=";;
+#endif
 
 /* Queries Cygwin web site for packages containing files matching a regexp.
    Return value is 1 if there was a problem, otherwise 0.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]