[CalendarServer-changes] [13399] CalendarServer/trunk/support/_cache_deps

source_changes at macosforge.org source_changes at macosforge.org
Thu May 1 19:35:37 PDT 2014


Revision: 13399
          http://trac.calendarserver.org//changeset/13399
Author:   wsanchez at apple.com
Date:     2014-05-01 19:35:37 -0700 (Thu, 01 May 2014)
Log Message:
-----------
Better way to remove offensive content from tarballs

Modified Paths:
--------------
    CalendarServer/trunk/support/_cache_deps

Modified: CalendarServer/trunk/support/_cache_deps
===================================================================
--- CalendarServer/trunk/support/_cache_deps	2014-05-02 02:28:56 UTC (rev 13398)
+++ CalendarServer/trunk/support/_cache_deps	2014-05-02 02:35:37 UTC (rev 13399)
@@ -72,9 +72,8 @@
 #
 
 for archive in $(find "${wd}/.develop" -type f -name '*.tgz'); do
-  ruler "Cleaning up ${archive}";
-  tmp="$(mktemp -d -t fooXXXX)";
-  gnutar -C "${tmp}" --exclude '*.exe' -xzf "${archive}";
-  gnutar -C "${tmp}" -czf "${archive}" ./;
-  rm -rf "${tmp}";
+  if tar -tvfz "${archive}" "*.exe" > /dev/null 2>&1; then
+    ruler "Removing binaries from ${archive}";
+    gzcat "${archive}" | gnutar --delete --wildcards -vf - "*.exe" > "${archive}";
+  fi;
 done;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140501/a23bfe67/attachment.html>


More information about the calendarserver-changes mailing list