debug-remote-files.sh.inc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. echo -e "\nls $TARBALL_FILE"
  2. ls $TARBALL_FILE || exit 1
  3. echo -e "\nls ./$TARBALL_FILENAME"
  4. ls ./$TARBALL_FILENAME || exit 1
  5. echo -e "\nls $TARBALL_FILE.sig"
  6. ls $TARBALL_FILE.sig || exit 1
  7. echo -e "\nls ./$TARBALL_FILENAME.sig"
  8. ls ./$TARBALL_FILENAME.sig || exit 1
  9. echo -e "\nls $PKGBUILD_FILE"
  10. ls $PKGBUILD_FILE || exit 1
  11. echo -e "\nls ./PKGBUILD"
  12. ls ./PKGBUILD || exit 1
  13. echo -e "\nls $PKGBUILD_FILE.sig"
  14. ls $PKGBUILD_FILE.sig || exit 1
  15. echo -e "\nls ./PKGBUILD.sig"
  16. ls ./PKGBUILD.sig || exit 1
  17. for remote_file in ${REMOTE_FILES[@]}
  18. do [ -f $remote_file -a "$(stat --printf='%s' $remote_file)" != "9" ] && does_remote_exist=1 || does_remote_exist=0
  19. echo -e "\n$remote_file does_remote_exist=$does_remote_exist" ; (($does_remote_exist)) || exit 1 ;
  20. done
  21. echo -e "\ngpg --verify --verify-options no-show-photos ./$TARBALL_FILENAME.sig"
  22. gpg --verify --verify-options no-show-photos ./$TARBALL_FILENAME.sig || exit 1
  23. echo -e "\ndiff $TARBALL_FILE ./$TARBALL_FILENAME"
  24. diff $TARBALL_FILE ./$TARBALL_FILENAME || exit 1
  25. echo -e "\ndiff $TARBALL_FILE.sig ./$TARBALL_FILENAME.sig"
  26. diff $TARBALL_FILE.sig ./$TARBALL_FILENAME.sig || exit 1
  27. echo -e "\ngpg --verify --verify-options no-show-photos ./PKGBUILD.sig"
  28. gpg --verify --verify-options no-show-photos ./PKGBUILD.sig || exit 1
  29. echo -e "\ndiff $PKGBUILD_FILE ./PKGBUILD"
  30. diff $PKGBUILD_FILE ./PKGBUILD || exit 1
  31. echo -e "\ndiff $PKGBUILD_FILE.sig ./PKGBUILD.sig"
  32. diff $PKGBUILD_FILE.sig ./PKGBUILD.sig || exit 1