Skip to content

Commit 0562bed

Browse files
committed
REDHAT: Makefile, dont reset dist-git-tmp if set
JIRA: Internal Makefile.rhpkg is called on each invocation of @$(MAKE), because of it, RHDISTGIT_TMP is being redefined to the default value after the first invocation. This fixes that by checking if the variable has already been set before redefining it. Remove self-test fixed value for DISTGIT_TMP as now it is defined by user-config, and then fallsback to /tmp if not found. Signed-off-by: Lucas Zampieri <lzampier@redhat.com>
1 parent cddaddc commit 0562bed

25 files changed

+1
-25
lines changed

redhat/Makefile.rhpkg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ endif
1919
#RHDISTGIT_CACHE:=
2020
# Temporary directory to clone the dist-git repo to. Change this if you
2121
# have a faster storage
22-
RHDISTGIT_TMP:=/tmp
22+
RHDISTGIT_TMP?=/tmp
2323

2424
# load configuration, starting with home directory then local
2525
ifeq ("$(RHDISTGIT_CACHE)", "")

redhat/self-test/data/centos-6161a435c191.el7

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ PROCESS_CONFIGS_OPTS=-n -w -c
4646
REDHAT=../redhat
4747
RELEASETAG=kernel-5.12.0-0.rc4.6.test
4848
RHDISTGIT_BRANCH=c9s
49-
RHDISTGIT_TMP=/tmp
5049
RHDISTGIT_USER="shadowman"
5150
RHEL_MAJOR=9
5251
RHEL_MINOR=5

redhat/self-test/data/centos-6161a435c191.fc25

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ PROCESS_CONFIGS_OPTS=-n -w -c
4646
REDHAT=../redhat
4747
RELEASETAG=kernel-5.12.0-0.rc4.6.test
4848
RHDISTGIT_BRANCH=c9s
49-
RHDISTGIT_TMP=/tmp
5049
RHDISTGIT_USER="shadowman"
5150
RHEL_MAJOR=9
5251
RHEL_MINOR=5

redhat/self-test/data/centos-9f4ad9e425a1.el7

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ PROCESS_CONFIGS_OPTS=-n -w -c
4646
REDHAT=../redhat
4747
RELEASETAG=kernel-5.12.0-6.test
4848
RHDISTGIT_BRANCH=c9s
49-
RHDISTGIT_TMP=/tmp
5049
RHDISTGIT_USER="shadowman"
5150
RHEL_MAJOR=9
5251
RHEL_MINOR=5

redhat/self-test/data/centos-9f4ad9e425a1.fc25

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ PROCESS_CONFIGS_OPTS=-n -w -c
4646
REDHAT=../redhat
4747
RELEASETAG=kernel-5.12.0-6.test
4848
RHDISTGIT_BRANCH=c9s
49-
RHDISTGIT_TMP=/tmp
5049
RHDISTGIT_USER="shadowman"
5150
RHEL_MAJOR=9
5251
RHEL_MINOR=5

redhat/self-test/data/centos-a5e13c6df0e4.el7

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ PROCESS_CONFIGS_OPTS=-n -w -c
4646
REDHAT=../redhat
4747
RELEASETAG=kernel-5.12.0-0.rc5.6.test
4848
RHDISTGIT_BRANCH=c9s
49-
RHDISTGIT_TMP=/tmp
5049
RHDISTGIT_USER="shadowman"
5150
RHEL_MAJOR=9
5251
RHEL_MINOR=5

redhat/self-test/data/centos-a5e13c6df0e4.fc25

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ PROCESS_CONFIGS_OPTS=-n -w -c
4646
REDHAT=../redhat
4747
RELEASETAG=kernel-5.12.0-0.rc5.6.test
4848
RHDISTGIT_BRANCH=c9s
49-
RHDISTGIT_TMP=/tmp
5049
RHDISTGIT_USER="shadowman"
5150
RHEL_MAJOR=9
5251
RHEL_MINOR=5

redhat/self-test/data/centos-edc9dd1e3c31.el7

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ PROCESS_CONFIGS_OPTS=-n -w -c
4646
REDHAT=../redhat
4747
RELEASETAG=kernel-5.12.0-6.test
4848
RHDISTGIT_BRANCH=c9s
49-
RHDISTGIT_TMP=/tmp
5049
RHDISTGIT_USER="shadowman"
5150
RHEL_MAJOR=9
5251
RHEL_MINOR=5

redhat/self-test/data/centos-edc9dd1e3c31.fc25

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ PROCESS_CONFIGS_OPTS=-n -w -c
4646
REDHAT=../redhat
4747
RELEASETAG=kernel-5.12.0-6.test
4848
RHDISTGIT_BRANCH=c9s
49-
RHDISTGIT_TMP=/tmp
5049
RHDISTGIT_USER="shadowman"
5150
RHEL_MAJOR=9
5251
RHEL_MINOR=5

redhat/self-test/data/fedora-6161a435c191.el7

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ PROCESS_CONFIGS_OPTS=-n -w -c
4646
REDHAT=../redhat
4747
RELEASETAG=kernel-5.12.0-0.rc4.6.test
4848
RHDISTGIT_BRANCH=rawhide
49-
RHDISTGIT_TMP=/tmp
5049
RHDISTGIT_USER="shadowman"
5150
RHEL_MAJOR=9
5251
RHEL_MINOR=5

0 commit comments

Comments
 (0)