diff options
author | Allan McRae <allan@archlinux.org> | 2009-10-11 21:16:09 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-05-18 11:35:55 -0500 |
commit | c1fc00508e337f20eb94e95978e193d23cfeaf10 (patch) | |
tree | c24c39477d12a71fc4c06f4e7a24f8ab1915c1a2 | |
parent | 0e7ba6bddd4b6c67cb6344ee3af4bacb00cda76b (diff) |
makepkg: allow skipping integrity checks when making source package
Extends the use of the --skipinteg option to creating a source
package. Fixes FS#15984.
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | scripts/makepkg.sh.in | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 30e365c0..17072454 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1077,9 +1077,15 @@ create_srcpackage() { mkdir -p "$srcdir" chmod a-s "$srcdir" cd "$srcdir" - download_sources - # We can only check checksums if we have all files. - check_checksums + if (( ! SKIPINTEG || SOURCEONLY == 2 )); then + download_sources + fi + if (( ! SKIPINTEG )); then + # We can only check checksums if we have all files. + check_checksums + else + warning "$(gettext "Skipping integrity checks.")" + fi cd "$startdir" msg "$(gettext "Creating source package...")" |