BUGREPORT - Vivaldi update with cron


  • Vivaldi Translator

    This option does not work. Mageia/Rosa/OpenMandriva The cron script wrong, incomplete. The error message: [color=#4444bb]urpmi.addmedia --update vivaldi-snapshot http://repo.vivaldi.com/archive/rpm/x86_64/ "vivaldi-snapshot" adatforrás hozzáadása ...a behozatal sikertelen: a(z) curl hibát adott vissza: "22" kóddal lépett ki a(z) "vivaldi-snapshot" adatforrásnak nincs metaadat fájlja[/color] english: urpmi.addmedia --update vivaldi-snapshot http://repo.vivaldi.com/archive/rpm/x86_64/ "vivaldi-snapshot" added data source ...the import fails. the curl error "22" code exit the "vivaldi-snapshot" no data source metadata file ******************************* Missing the hdlist.cz metadata file This file create [b]genhdlist2 <*.rpm dir>[/b] Please fix the bug, otherwise the upgrade will never work.


  • Vivaldi Translator

    There is still no change.
    But there is a workaround

    #!/bin/bash -x
    
    clear
    rm -f /etc/cron.daily/vivaldi-snapshot
    
    name="vivaldi-snapshot"
    server="https://repo.vivaldi.com"
    server_path="archive/rpm"
    
    installed_version=$(${name} --version | awk -vFS=' ' '{print $2}') 
    arch=$(uname -i)
    ext="rpm"
    
    if [ "${arch}" = "x86_64" ]; then
      path="${server}/${server_path}/x86_64"
      new_version=$(curl -ks ${path}/ | awk -F'"|\\.x86_64\\.rpm' 'sub( /vivaldi-snapshot-/, "", $2) {lastver = $2} END { print lastver }')
    
    else 
      path="${server}/${server_path}/i386"
      new_version=$(curl -ks ${path}/ | awk -F'"|\\.i386\\.rpm' 'sub( /vivaldi-snapshot-/, "", $2) {lastver = $2} END { print lastver }')
    fi
    
    if [[ ${installed_version} < ${new_version} ]]; then
    # make temp folder
      workdir=$(mktemp -d) && chmod 0700 ${workdir}
      cd ${workdir}
    
      # download
      package="${name}-${new_version}-1.${arch}.${ext}"
      wget --no-check-certificate ${path}/${package}
    
      # download ok?
      if ! [ -f /${workdir}/${package} ]; then
        echo "Download failed"
        rm -rf ${workdir}                                                                                                                                                                                          
        exit                                                                                                                                                                                                       
      fi
    
      urpmi ${package}
    
      export LANG=hu_HU.UTF-8
        if ! [ -x /usr/bin/${name} ]; then
          echo -e "The newj ${package} installed failed." | mail -s "Vivaldi snapshot" $USER
        else 
          echo "The newj ${package} installed." | mail -s "Vivaldi snapshot" csablak $USER
        fi
    fi
    
    # del temp folder (workdir)
    rm -rf ${workdir}
    rm -f /etc/cron.daily/vivaldi-snapshot
    
    

    This script into the /etc/cron.daily and chown root:root scriptname


Log in to reply
 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.