* cygcheck.cc (package_grep): Accommodate arch-specific package layout.

This commit is contained in:
Christopher Faylor 2013-08-23 19:56:26 +00:00
parent 1560d3e281
commit 94f900f805
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2013-08-23 Christopher Faylor <me.cygwin2013@cgf.cx>
* cygcheck.cc (package_grep): Accommodate arch-specific package layout.
2013-07-31 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (MINGW_LDFLAGS): Don't link against w32api libs. These

View File

@ -2176,7 +2176,7 @@ package_grep (char *search)
}
/* construct the actual URL by escaping */
char *url = (char *) alloca (sizeof (base_url) + strlen (search) * 3);
char *url = (char *) alloca (sizeof (base_url) + strlen ("&arch=x86_64") + strlen (search) * 3);
strcpy (url, base_url);
char *dest;
@ -2194,7 +2194,11 @@ package_grep (char *search)
dest += 2;
}
}
*dest = 0;
#ifdef __x86_64__
strcpy (dest, "&arch=x86_64");
#else
strcpy (dest, "&arch=x86");
#endif
/* Connect to the net and open the URL. */
if (pInternetAttemptConnect (0) != ERROR_SUCCESS)