This is the mail archive of the cygwin 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]

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

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