--- makepkg.orig 2009-08-06 09:39:33.117013144 -0400 +++ /usr/bin/makepkg 2009-08-06 09:44:51.446636563 -0400 @@ -62,6 +62,7 @@ NOBUILD=0 NODEPS=0 NOEXTRACT=0 +NOHASH=0 RMDEPS=0 REPKG=0 LOGGING=0 @@ -1023,7 +1024,12 @@ cd "$srcdir" download_sources # We can only check checksums if we have all files. - check_checksums + # Fix for flyspray bug #15830 + if [ "$NOHASH" -eq 1 ]; then + warning "$(gettext "Skipping integrity checks.")" + else + check_checksums + fi cd "$startdir" msg "$(gettext "Creating source package...")" @@ -1400,6 +1406,7 @@ echo "$(gettext " -f, --force Overwrite existing package")" echo "$(gettext " -g, --geninteg Generate integrity checks for source files")" echo "$(gettext " -h, --help This help")" + echo "$(gettext " -n, --nohash Skip all integrity checks")" echo "$(gettext " -i, --install Install package after successful build")" echo "$(gettext " -L, --log Log package build process")" echo "$(gettext " -m, --nocolor Disable colorized output messages")" @@ -1444,9 +1451,9 @@ ARGLIST=$@ # Parse Command Line Options. -OPT_SHORT="AbcCdefFghiLmop:rRsV" +OPT_SHORT="AbcCdefFghiLmnop:rRsV" OPT_LONG="allsource,asroot,ignorearch,builddeps,clean,cleancache,nodeps" -OPT_LONG="$OPT_LONG,noextract,force,forcever:,geninteg,help,holdver" +OPT_LONG="$OPT_LONG,noextract,nohash,force,forcever:,geninteg,help,holdver" OPT_LONG="$OPT_LONG,install,log,nocolor,nobuild,rmdeps,repackage,source" OPT_LONG="$OPT_LONG,syncdeps,version,config:" # Pacman Options @@ -1483,6 +1490,7 @@ -i|--install) INSTALL=1 ;; -L|--log) LOGGING=1 ;; -m|--nocolor) USE_COLOR='n' ;; + -n|--nohash) NOHASH=1 ;; -o|--nobuild) NOBUILD=1 ;; -p) shift; BUILDFILE=$1 ;; -r|--rmdeps) RMDEPS=1 ;; @@ -1801,7 +1809,11 @@ fi else download_sources - check_checksums + if [ "$NOHASH" -eq 1 ]; then + warning "$(gettext "Skipping integrity checks.")" + else + check_checksums + fi extract_sources fi