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] cygcheck: xz packages


cygcheck needs fixing wrt .tar.xz packages; patch attached.


Yaakov
2013-09-13  Yaakov Selkowitz  <yselkowitz@...>

	* dump_setup.cc (find_tar_ext): Allow .tar.xz packages.

Index: dump_setup.cc
===================================================================
RCS file: /cvs/src/src/winsup/utils/dump_setup.cc,v
retrieving revision 1.27
diff -u -p -r1.27 dump_setup.cc
--- dump_setup.cc	21 Jan 2013 16:28:27 -0000	1.27
+++ dump_setup.cc	13 Sep 2013 17:08:42 -0000
@@ -46,7 +46,7 @@ find_tar_ext (const char *path)
     return 0;
   if (*p == '.')
     {
-      if (strcmp (p, ".tar.gz") != 0)
+      if (!(strcmp (p, ".tar.gz") == 0 || strcmp (p, ".tar.xz") == 0))
 	return 0;
     }
   else if (--p <= path || strcmp (p, ".tar.bz2") != 0)

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