diff options
-rw-r--r-- | license-installer.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/license-installer.sh b/license-installer.sh index 31a81f7..07b3cb1 100644 --- a/license-installer.sh +++ b/license-installer.sh @@ -30,7 +30,11 @@ if [ "$1" = "--with" -a "$2" = "license_agreement" ]; then fi fi ( cd $SPECDIR - /usr/bin/builder --define _topdir $tmp -nm -nc -ncs --with license_agreement --target @TARGET_CPU@ @BASE_NAME@.spec + nd= + if [ '@USE_DISTFILES@' = 'no' ]; then + nd=-nd + fi + /usr/bin/builder --define _topdir $tmp $nd -nm -nc -ncs --with license_agreement --target @TARGET_CPU@ @BASE_NAME@.spec if [ "$?" -ne 0 ]; then exit 2 fi |