Skip to contentSkip to conversation

package/urg: fix extraction commands

PATCH New Yann E. MORIN 2 participants 3 messages Oct 1, 2017 – Oct 17, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/urg: fix extraction commands

Currently, the extraction commands entirely remove the urg directory, which means the downloaded stamp will get removed, and thus a subsequent build would try to re-download it.

It turns out that the directory extrqated by urg is already correctly named, so we just need to extract out of the build directory. This highly simplifies the command.

---
 package/urg/urg.mk | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
package/urg/urg.mk +1 -4
index 4a41779709..966627fe36 100644
@@ -25,10 +25,7 @@ endif
 URG_CONFIG_SCRIPTS = c_urg-config urg-config
 
 define URG_EXTRACT_CMDS
-	$(RM) -rf $(URG_DIR)
-	$(UNZIP) -d $(BUILD_DIR)/ $(DL_DIR)/$(URG_SOURCE)
-	test -d $(URG_DIR) || \
-		mv $(BUILD_DIR)/$(subst .zip,,$(URG_SOURCE)) $(URG_DIR)
+	$(UNZIP) -d $(BUILD_DIR) $(DL_DIR)/$(URG_SOURCE)
 endef
 
 $(eval $(autotools-package))
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/urg: fix extraction commands

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Currently, the extraction commands entirely remove the urg directory, which means the downloaded stamp will get removed, and thus a subsequent build would try to re-download it.

Quoted 6 lines

It turns out that the directory extrqated by urg is already correctly named, so we just need to extract out of the build directory. This highly simplifies the command.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 package/urg: fix extraction commands

In reply to Yann E. MORIN
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Currently, the extraction commands entirely remove the urg directory, which means the downloaded stamp will get removed, and thus a subsequent build would try to re-download it.

Quoted 6 lines

It turns out that the directory extrqated by urg is already correctly named, so we just need to extract out of the build directory. This highly simplifies the command.

Committed to 2017.08.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard