summaryrefslogtreecommitdiffstats
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-06-19 20:33:09 +0200
committerAllan McRae <allan@archlinux.org>2009-06-21 12:32:17 +0200
commit02acf65ef30048ba3c732628d30215467245e779 (patch)
tree5be3a569505d7099c9ad6204dac2a47a91fd89ea /scripts/makepkg.sh.in
parentb3a553536000f3a2684aa061e83ac759a429da99 (diff)
downloadpacman-02acf65ef30048ba3c732628d30215467245e779.tar.gz
pacman-02acf65ef30048ba3c732628d30215467245e779.tar.xz
makepkg: Download sources and check checksums for any source package.
It wouldn't be very nice to ship a PKGBUILD with the wrong checksums. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 433fe348..b555a031 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1012,15 +1012,15 @@ create_package() {
create_srcpackage() {
cd "$startdir"
- if [ "$SOURCEONLY" -eq 2 ]; then
- # get back to our src directory so we can begin with sources
- mkdir -p "$srcdir"
- cd "$srcdir"
- download_sources
- # we can only check checksums if we have all files
- check_checksums
- cd "$startdir"
- fi
+
+ # Get back to our src directory so we can begin with sources.
+ mkdir -p "$srcdir"
+ cd "$srcdir"
+ download_sources
+ # We can only check checksums if we have all files.
+ check_checksums
+ cd "$startdir"
+
msg "$(gettext "Creating source package...")"
local srclinks="$(mktemp -d "$startdir"/srclinks.XXXXXXXXX)"
mkdir "${srclinks}"/${pkgbase}