Ignore:
Timestamp:
May 22, 2017, 8:14:10 AM (2 years ago)
Author:
Juanma
Message:

Added zomandos.app support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devtools/desktop_to_xml/desktop_to_xml.sh

    r4831 r4847  
    2929msg_desktop_not_found="\nDesktop file not found at %s. Looking at llx-resources\n"
    3030msg_desktop_not_present="\nDesktop file was not found at %s. Operation aborted\n"
    31 msg_searching_img="\nSearching screenshots in %s...\n"
     31msg_searching_img="\nSearching screenshots in %s for %s\n"
    3232msg_image_found="\nScreenshoot %s found for app %s\n"
    3333function usage_help
     
    381381                                        {
    382382                                                sub("zero-lliurex-", "",iconBaseName);
     383                                                iconBaseName="software-properties"
    383384                                        }
    384385                                        tagIcon="<icon type=\"stock\">"iconBaseName"</icon>";
     
    458459function get_screenshot
    459460{
    460         printf "$msg_searching_img" "debian"
     461        printf "$msg_searching_img" "debian" $1
    461462        imageFound=0
    462         pkgName=${1/.desktop/}
     463        if [ $sw_zomando -ne 1 ]
     464        then
     465                pkgName=${1/.desktop/}
     466        else
     467                pkgName=${1/.app/}
     468                pkgName=${pkgName/*-/}
     469        fi
    463470        url="https://screenshots.debian.net/packages?page=1&search=${pkgName}&utf8=✓"
    464471        get_screenshot_from $url $pkgName
     
    618625        no_copy_desktop=""
    619626        sw_zomando=0
    620         [[ $(get_package_type) == 'zmd' ]] && analyze_zmd_dir $parm || analyze_desktop_dir $parm
     627        get_package_type == 'zmd' && analyze_zmd_dir $parm || analyze_desktop_dir $parm
    621628done
    622629
Note: See TracChangeset for help on using the changeset viewer.