diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2003-11-20 10:26:38 +0000 |
---|---|---|
committer | Andreas Gruenbacher <agruen@suse.de> | 2003-11-20 10:26:38 +0000 |
commit | 859053bc80004299066269aebc2ec68e48f19bf2 (patch) | |
tree | 3db5d33958f4f77e5792f927ab003688cbae5298 /scripts/apatch.in | |
parent | 418efce88092821e6612e5f8b5d3aa440a19188a (diff) | |
download | quilt-859053bc80004299066269aebc2ec68e48f19bf2.tar.gz |
Small fix from wangdi: when patch file empty, it should first check wether the dir in .pc exist, then create timestamp
Diffstat (limited to 'scripts/apatch.in')
-rwxr-xr-x | scripts/apatch.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/apatch.in b/scripts/apatch.in index ad64104..54efa81 100755 --- a/scripts/apatch.in +++ b/scripts/apatch.in @@ -103,7 +103,12 @@ apatch() else touch .pc/$patch~refresh fi - touch .pc/$patch/.timestamp + + if [ -e ".pc/$patch" ] + then + touch .pc/$patch/.timestamp + fi + if [ "$(shopt -s nullglob ; echo .pc/$patch/*)" = "" ] then echo $"Patch $patch appears to be empty, applied" |