public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
To: cygwin-patches@cygwin.com
Subject: [PATCH] Fix cygcheck -p (was: Cygwin package search down for a while)
Date: Fri, 23 Aug 2013 19:46:00 -0000	[thread overview]
Message-ID: <5217BC12.9040601@users.sourceforge.net> (raw)
In-Reply-To: <20130823192251.GA3454@ednor.casa.cgf.cx>

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

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


[-- Attachment #2: cygcheck-p-arch.patch --]
[-- Type: text/x-patch, Size: 900 bytes --]

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.  */

       reply	other threads:[~2013-08-23 19:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <announce.20130823172713.GA6948@ednor.casa.cgf.cx>
     [not found] ` <20130823192251.GA3454@ednor.casa.cgf.cx>
2013-08-23 19:46   ` Yaakov (Cygwin/X) [this message]
2013-08-23 20:11     ` [PATCH] Fix cygcheck -p Yaakov (Cygwin/X)
2013-08-23 20:22       ` Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5217BC12.9040601@users.sourceforge.net \
    --to=yselkowitz@users.sourceforge.net \
    --cc=cygwin-patches@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).