aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rwxr-xr-xpatches/mutt/mutt.SlackBuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/patches/mutt/mutt.SlackBuild b/patches/mutt/mutt.SlackBuild
index 93d940b0..cc757627 100755
--- a/patches/mutt/mutt.SlackBuild
+++ b/patches/mutt/mutt.SlackBuild
@@ -47,11 +47,16 @@ else
tarflag="z"
fi
-if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
- rm -rf $SRC_DIR/{$PATCH1,$PATCH2}
- wget "$URL" -O "$SRC_DIR/$SRC"
- wget "$PATCH1_URL" -O "$SRC_DIR/$PATCH1"
- wget "$PATCH2_URL" -O "$SRC_DIR/$PATCH2"
+if [ "$RTOOL" == "wget" ]; then
+ if [ ! -f "$SRC_DIR/$SRC" ]; then
+ wget "$URL" -O "$SRC_DIR/$SRC"
+ fi
+ if [ ! -f "$SRC_DIR/$PATCH1" ]; then
+ wget "$PATCH1_URL" -O "$SRC_DIR/$PATCH1"
+ fi
+ if [ ! -f "$SRC_DIR/$PATCH2" ]; then
+ wget "$PATCH2_URL" -O "$SRC_DIR/$PATCH2"
+ fi
fi
if [ "$ARCH" == "i486" ]; then