From f920c1611c8d34c3238b8d7fcbabf473a3525c9a Mon Sep 17 00:00:00 2001 From: Cockpit Project Date: Fri, 24 Feb 2017 05:20:38 +0000 Subject: [PATCH 2/2] When touching patched files handle case of only one file When touching patched files so that they all have the same utime we need to handle the case where only one file is patched. Otherwise we get: touch: missing file operand --- tools/cockpit.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cockpit.spec b/tools/cockpit.spec index 4b309a9..c81bb51 100644 --- a/tools/cockpit.spec +++ b/tools/cockpit.spec @@ -133,7 +133,7 @@ if [ -n "%{patches}" ]; then git config core.autocrlf false && git config core.safecrlf false && git config gc.auto 0 git add -f . && git commit -a -q -m "Base" && git tag -a initial --message="initial" git am --whitespace=nowarn %{patches} - touch -r $(git diff --name-only initial..HEAD) + touch -r $(git diff --name-only initial..HEAD) .git rm -rf .git fi -- 2.9.3