Makefile: fix target locode-download #1056

Merged
fyrchik merged 1 commit from elebedeva/frostfs-node:fix/locode-download into master 2024-03-28 19:57:46 +00:00
Member

wget in target locode-download fails if .cache dir does not exist.
Added check for .cache presence.

Signed-off-by: Ekaterina Lebedeva ekaterina.lebedeva@yadro.com

`wget` in target `locode-download` fails if `.cache` dir does not exist. Added check for `.cache` presence. Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
elebedeva requested review from storage-core-committers 2024-03-26 11:12:15 +00:00
elebedeva requested review from storage-core-developers 2024-03-26 11:12:18 +00:00
Member

Please fix commit header.

Please fix commit header.
fyrchik reviewed 2024-03-26 11:49:44 +00:00
Makefile Outdated
@ -265,6 +265,9 @@ debclean:
# Download locode database
locode-download:
if [ ! -d ".cache"]; then \
Owner

mkdir has -p option which serves this purpose (ignore EEXIST), among others.
Also, while we are here: it seems that .cache is actually $(TMP_DIR) -- can we use it (see other targets, should be similar to this one).

`mkdir` has `-p` option which serves this purpose (ignore EEXIST), among others. Also, while we are here: it seems that `.cache` is actually `$(TMP_DIR)` -- can we use it (see other targets, should be similar to this one).
Author
Member

Replaced condition with mkdir -p and .cache with $(TMP_DIR).

Should I replace .cache with $(TMP_DIR) in other targets as well?

Replaced condition with ```mkdir -p``` and ```.cache``` with ```$(TMP_DIR)```. Should I replace ```.cache``` with ```$(TMP_DIR)``` in other targets as well?
elebedeva force-pushed fix/locode-download from b4877a531b to ce8262c866 2024-03-28 11:42:39 +00:00 Compare
elebedeva changed title from Fix Makefile target locode-download to Makefile: fix target locode-download 2024-03-28 11:43:30 +00:00
elebedeva force-pushed fix/locode-download from ce8262c866 to 8690db697c 2024-03-28 11:51:00 +00:00 Compare
elebedeva added the
refactoring
label 2024-03-28 11:52:50 +00:00
elebedeva removed the
refactoring
label 2024-03-28 13:31:05 +00:00
fyrchik approved these changes 2024-03-28 14:48:11 +00:00
achuprov approved these changes 2024-03-28 14:54:52 +00:00
acid-ant approved these changes 2024-03-28 18:02:41 +00:00
fyrchik merged commit 8690db697c into master 2024-03-28 19:57:46 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1056
No description provided.