makepkg: let --source imply --ignorearch
Since source package creation is architecture independent, we should ignore architecture-dependent behaviors such as the lint check which will halt execution when the host machine is not a supported arch. https://github.com/falconindy/pkgbuild-introspection/issues/15
This commit is contained in:
parent
e1f6fe652d
commit
85c055da73
|
@ -3153,10 +3153,16 @@ fi
|
||||||
|
|
||||||
SRCPKGDEST=${_SRCPKGDEST:-$SRCPKGDEST}
|
SRCPKGDEST=${_SRCPKGDEST:-$SRCPKGDEST}
|
||||||
SRCPKGDEST=${SRCPKGDEST:-$startdir} #default to $startdir if undefined
|
SRCPKGDEST=${SRCPKGDEST:-$startdir} #default to $startdir if undefined
|
||||||
if (( SOURCEONLY )) && [[ ! -w $SRCPKGDEST ]]; then
|
if (( SOURCEONLY )); then
|
||||||
error "$(gettext "You do not have write permission to store source tarballs in %s.")" "$SRCPKGDEST"
|
if [[ ! -w $SRCPKGDEST ]]; then
|
||||||
plain "$(gettext "Aborting...")"
|
error "$(gettext "You do not have write permission to store source tarballs in %s.")" "$SRCPKGDEST"
|
||||||
exit 1
|
plain "$(gettext "Aborting...")"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If we're only making a source tarball, then we need to ignore architecture-
|
||||||
|
# dependent behavior.
|
||||||
|
IGNOREARCH=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LOGDEST=${_LOGDEST:-$LOGDEST}
|
LOGDEST=${_LOGDEST:-$LOGDEST}
|
||||||
|
|
Loading…
Reference in New Issue