Commit 2a85398e authored by Andrea Scarpino's avatar Andrea Scarpino

packages on FTP could have the old extension

parent 2e184cba
......@@ -397,12 +397,10 @@ upload_file(){
remove_from_ftp(){
if [ "$VERBOSE" == "TRUE" ]; then
#ncftpput -u $username -p $password $ftp_url /$ftp_dir -W "rm -f $1-*-*-*${PKGEXT}" || print_upload_error $1
lftp -u "$username,$password" "$ftp_url/$ftp_dir" -e "${LFTP_CMDS}; glob rm -f $1-*-*-*${PKGEXT}; exit"
lftp -u "$username,$password" -e "${LFTP_CMDS}; glob rm -f $1-*-*-*.pkg.tar.*; exit" "$ftp_url/$ftp_dir"
printf "\n"
else
#ncftpput -u $username -p $password $ftp_url /$ftp_dir -W "rm -f $1-*-*-*${PKGEXT}" &> /dev/null || print_upload_error $1
lftp -u "$username,$password" "$ftp_url/$ftp_dir" -e "${LFTP_CMDS}; glob rm -f $1-*-*-*${PKGEXT}; exit" &> /dev/null
lftp -u "$username,$password" -e "${LFTP_CMDS}; glob rm -f $1-*-*-*.pkg.tar.*; exit" &> /dev/null "$ftp_url/$ftp_dir"
fi
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment