Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2013-08-23 23:56:26 +0400
committerChristopher Faylor <me@cgf.cx>2013-08-23 23:56:26 +0400
commit94f900f805c2a2049e2e857457ec24d269ec08b0 (patch)
treeba994df03e56f1c245e6abd3f210a9cec3fac348
parent1560d3e28184be3b7701b83866eac46136cf6a9a (diff)
* cygcheck.cc (package_grep): Accommodate arch-specific package layout.
-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 00894b9b2..743913077 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 0447e585a..b9e93b966 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)