aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--winsup/utils/ChangeLog4
-rw-r--r--winsup/utils/cygcheck.cc8
2 files changed, 10 insertions, 2 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index 00894b9..7439130 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -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
diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc
index 0447e58..b9e93b9 100644
--- a/winsup/utils/cygcheck.cc
+++ b/winsup/utils/cygcheck.cc
@@ -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)