update downloadpkg.sh