- bump version. Fetch from old/ dir if the version is out-of-date.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 29 Nov 2006 10:23:54 +0000 (10:23 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 29 Nov 2006 10:23:54 +0000 (10:23 -0000)
Thanks to Pavel Roskin

package/dm/dm.mk

index b3fb5c9f73f45d0580be08793126b0751bc7afa6..832cd93182bc4e2dbe1bc442ba7944116ee87628 100644 (file)
 # USA
 
 DM_BASEVER=1.02
-DM_PATCH=12
+DM_PATCH=13
 DM_VERSION=$(DM_BASEVER).$(DM_PATCH)
 DM_SOURCE:=device-mapper.$(DM_VERSION).tgz
 DM_SITE:=ftp://sources.redhat.com/pub/dm
+DM_SITE_OLD:=ftp://sources.redhat.com/pub/dm/old
 DM_CAT:=$(ZCAT)
 DM_DIR:=$(BUILD_DIR)/device-mapper.$(DM_VERSION)
 DM_STAGING_BINARY:=$(STAGING_DIR)/sbin/dmsetup
@@ -36,7 +37,8 @@ DM_STAGING_LIBRARY:=$(STAGING_DIR)/lib/libdevmapper.so
 DM_TARGET_LIBRARY:=$(TARGET_DIR)/usr/lib/libdevmapper.so
 
 $(DL_DIR)/$(DM_SOURCE):
-        $(WGET) -P $(DL_DIR) $(DM_SITE)/$(DM_SOURCE)
+       $(WGET) -P $(DL_DIR) $(DM_SITE)/$(DM_SOURCE) || \
+               $(WGET) -P $(DL_DIR) $(DM_SITE_OLD)/$(DM_SOURCE)
 
 $(DM_DIR)/.unpacked: $(DL_DIR)/$(DM_SOURCE)
        $(DM_CAT) $(DL_DIR)/$(DM_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -