makepkg: make SRCPKGDEST default to $startdir

The current behaviour, which is placing source packages in PKGDEST if
SRCPKGDEST is not set, is inconsistent with {SRC,PKG}DEST handling and
there is no real advantage in doing so.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Cedric Staniewski 2011-02-01 15:59:35 +01:00 committed by Dan McGee
parent 332dd86912
commit d8c4b12c66
2 changed files with 3 additions and 3 deletions

View file

@ -183,8 +183,8 @@ Options
**SRCPKGDEST=**"/path/to/folder":: **SRCPKGDEST=**"/path/to/folder"::
If this value is not set, source package files will be stored in If this value is not set, source package files will be stored in
PKGDEST. Many people like to keep all source package files in in the current directory. Many people like to keep all source package files
a central location for easy cleanup, so this path can be set here. in a central location for easy cleanup, so this path can be set here.
**PACKAGER=**"John Doe <john@example.com>":: **PACKAGER=**"John Doe <john@example.com>"::
This value is used when querying a package to see who was the builder. This value is used when querying a package to see who was the builder.

View file

@ -1744,7 +1744,7 @@ if [[ ! -w $SRCDEST ]] ; then
fi fi
SRCPKGDEST=${_SRCPKGDEST:-$SRCPKGDEST} SRCPKGDEST=${_SRCPKGDEST:-$SRCPKGDEST}
SRCPKGDEST=${SRCPKGDEST:-$PKGDEST} #default to $PKGDEST if undefined SRCPKGDEST=${SRCPKGDEST:-$startdir} #default to $startdir if undefined
if (( HOLDVER )) && [[ -n $FORCE_VER ]]; then if (( HOLDVER )) && [[ -n $FORCE_VER ]]; then