Ignore:
Timestamp:
May 10, 2017, 6:06:15 PM (2 years ago)
Author:
Juanma
Message:

Discards screenshots when debian or ubuntu return no-found-screenshot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devtools/desktop_to_xml/desktop_to_xml.sh

    r4669 r4678  
    233233                        printf("") > outFile
    234234                        xmlFile=metainfoDir"/"array[1]".appdata.xml"
    235                         print "XML: "xmlFile
    236235                        print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > xmlFile
    237236                        print "<component type=\"desktop-application\">" >> xmlFile
     
    382381                get_screenshot_from $url $pkgName
    383382        fi
     383        if [[ $imageFound ==  'https://screenshots.debian.net/' || $imageFound == ' https://screenshots.ubuntu.com/' ]]
     384        then
     385                printf "Discarting image...\n"
     386                imageFound=0
     387        fi
    384388
    385389}
Note: See TracChangeset for help on using the changeset viewer.