From 88e8e160126803e81542fccfa6430a9ec691f1eedf45d5677134f3b4140bed20 Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Mon, 20 Oct 2014 09:33:03 +0000 Subject: [PATCH] Use "cmp -s" instead of "diff -q" OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=102 --- hplip.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hplip.spec b/hplip.spec index 20b2791..4d9d166 100644 --- a/hplip.spec +++ b/hplip.spec @@ -450,7 +450,7 @@ make install DESTDIR=%{buildroot} # https://bugzilla.opensuse.org/show_bug.cgi?id=784670 for pyc in $( find %{buildroot}%{_datadir}/hplip -name '*.pyc' ) do pyo="${pyc%.pyc}.pyo" - if test -f $pyo && diff -q $pyc $pyo 1>/dev/null + if test -f $pyo && cmp -s $pyc $pyo 1>/dev/null then echo hardlinking $pyc and $pyo because both have same content ln -f $pyc $pyo fi