Skip to contentSkip to conversation

Update version of device-mapper, add alternate location

PATCH New Pavel Roskin 2 participants 2 messages Nov 29, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update version of device-mapper, add alternate location

Old versions of device-mapper are moved to the "old" directory. Since new versions are released very often, tracking them would require frequent changes.

To avoid the breakage, look in the "old" directory if the package is not found.

dm/dm.mk +4 -2
Index: package/dm/dm.mk
===================================================================
@@ -24,10 +24,11 @@
 # 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_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) -
Signature · 2 lines
Regards,
Pavel Roskin
#1 lore raw

PATCH 1/1 Update version of device-mapper, add alternate location

Quoted 6 lines · Pavel Roskin

Old versions of device-mapper are moved to the "old" directory. Since new versions are released very often, tracking them would require frequent changes.

To avoid the breakage, look in the "old" directory if the package is not found.

I don't like the idea of silently using an old version, but then, i don't use dm myself.

Merged as r16713, thanks