From 05e76f1b41c7c09884ccf294c8c2deec62b839fa Mon Sep 17 00:00:00 2001 From: wangdi Date: Tue, 27 May 2003 02:57:38 +0000 Subject: [PATCH] Add checking pc file, before poppatch --- lustre/kernel_patches/scripts/rpatch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/kernel_patches/scripts/rpatch b/lustre/kernel_patches/scripts/rpatch index 636ff5f..5a8da38 100755 --- a/lustre/kernel_patches/scripts/rpatch +++ b/lustre/kernel_patches/scripts/rpatch @@ -59,11 +59,13 @@ fi PATCH_NAME=$(stripit $1) warn_top_current - if is_applied "$PATCH_NAME" then # if can_remove "$PATCH_NAME" # then + if [ ! -f $P/pc/$PATCH_NAME.pc ]; then + exit 1 + fi do_remove "$PATCH_NAME" kill_old_ones "$PATCH_NAME" remove_from_db "$PATCH_NAME" -- 1.8.3.1