summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2003-11-20 10:26:38 +0000
committerAndreas Gruenbacher <agruen@suse.de>2003-11-20 10:26:38 +0000
commit859053bc80004299066269aebc2ec68e48f19bf2 (patch)
tree3db5d33958f4f77e5792f927ab003688cbae5298 /scripts
parent418efce88092821e6612e5f8b5d3aa440a19188a (diff)
downloadquilt-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')
-rwxr-xr-xscripts/apatch.in7
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"