This is the mail archive of the
cygwin
mailing list for the Cygwin project.
cygport: latest diffutils issues warning
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: cygwin at cygwin dot com
- Date: Wed, 30 Dec 2009 21:04:49 -0500
- Subject: cygport: latest diffutils issues warning
The -u0 syntax has been deprecated, and now causes this message:
>>> Checking packages for missing or duplicate files
diff: `-0' option is obsolete; use `-U 0'
diff: Try `diff --help' for more information.
diff: `-0' option is obsolete; use `-U 0'
diff: Try `diff --help' for more information.
Fixed as below.
--
Chuck
Index: lib/pkg_pkg.cygpart
===================================================================
--- lib/pkg_pkg.cygpart (revision 8418)
+++ lib/pkg_pkg.cygpart (working copy)
@@ -112,10 +112,10 @@
find * -type f -o -type l | sort > ${tmp2}
- if ! diff -u0 ${tmp2} ${tmp1} > /dev/null
+ if ! diff -U 0 ${tmp2} ${tmp1} > /dev/null
then
# detect duplicates and/or missing files
- diff -u0 ${tmp2} ${tmp1} | grep -E -v '^@' > ${T}/pkgcheck.diff
+ diff -U 0 ${tmp2} ${tmp1} | grep -E -v '^@' > ${T}/pkgcheck.diff
if grep -E '^-[^\-]' ${T}/pkgcheck.diff > /dev/null
then
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple