[pacman-dev] [PATCH] makepkg: allow skipping intergrity checks whem 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> --- scripts/makepkg.sh.in | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 88487da..d85f858 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1038,9 +1038,13 @@ create_srcpackage() { # 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 + if [ $SKIPINTEG -eq 0 ]; then + # We can only check checksums if we have all files. + download_sources + check_checksums + else + warning "$(gettext "Skipping integrity checks.")" + fi cd "$startdir" msg "$(gettext "Creating source package...")" -- 1.6.4.4
Allan McRae wrote:
Extends the use of the --skipinteg option to creating a source package. Fixes FS#15984.
Signed-off-by: Allan McRae <allan@archlinux.org> --- scripts/makepkg.sh.in | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 88487da..d85f858 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1038,9 +1038,13 @@ create_srcpackage() { # 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 + if [ $SKIPINTEG -eq 0 ]; then + # We can only check checksums if we have all files. + download_sources
This is wrong... download_sources needs to be run when using --allsource. A fix version is on its way.
+ check_checksums + else + warning "$(gettext "Skipping integrity checks.")" + fi cd "$startdir"
msg "$(gettext "Creating source package...")"
participants (1)
-
Allan McRae