From bcb98b6c894f98fdfe45ad195baa112749294fe239f5d767f3ecb1e28032a63c Mon Sep 17 00:00:00 2001 From: Johannes Meixner Date: Mon, 20 Oct 2014 09:33:43 +0000 Subject: [PATCH] Use "cmp -s" instead of "diff -q ... 1>/dev/null" OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=103 --- hplip.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hplip.spec b/hplip.spec index 4d9d166..410c945 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 && cmp -s $pyc $pyo 1>/dev/null + if test -f $pyo && cmp -s $pyc $pyo then echo hardlinking $pyc and $pyo because both have same content ln -f $pyc $pyo fi