Changeset 2972 for lliurex-up


Ignore:
Timestamp:
Dec 1, 2016, 11:52:12 AM (3 years ago)
Author:
kbut
Message:

update scripts

Location:
lliurex-up/trunk/fuentes/lliurex-up-pool-scripts/usr/bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-up/trunk/fuentes/lliurex-up-pool-scripts/usr/bin/getinfofromdeb

    r2970 r2972  
    2121if not 'Source' in debinfo:
    2222        debinfo['Source']= debinfo['Package']
     23versionlist = debinfo['Version'].split(":")
     24if len(versionlist) > 1:
     25        debinfo['VersionWithoutEra'] = ":".join(versionlist[1:])
     26else:
     27        debinfo['VersionWithoutEra'] = debinfo['Version']
    2328print(printstring.safe_substitute(debinfo))
  • lliurex-up/trunk/fuentes/lliurex-up-pool-scripts/usr/bin/runpart-from-repository

    r2970 r2972  
    2222function buildDesktopInfo(){
    2323        DESTPATH="$1"
     24        PACKAGENAME="$2"
    2425        DESKTOPFILES=$(find ${UNCOMPRESSEDDEB} -name *.desktop)
     26        sed -i -e "/^$PACKAGENAME :/d" ${DESTPATH}/icons
    2527        ICONS=""
    2628        for x in ${DESKTOPFILES}; do
    2729                AUX="$(rgrep -i 'Icon=' $x | sed -e '')"
    28                 ICONS="${ICONS}\n${AUX}"
     30                if [ "$AUX" != "" ]; then
     31                        echo "${PACKAGENAME} : $AUX" >> ${DESTPATH}/icons
     32                fi
    2933        done
    3034}
     
    3943        #FOLDERDEB=$(echo $x | sed -E -e "s/_all.deb$|_i386.deb$|_amd64.deb$//g")
    4044        FOLDERDEB=$(dirname $x)
    41         PACKAGESOURCENAME=$(getinfofromdeb ${DEBSPATH}/$x '$Source')
     45        PACKAGESOURCENAME=$(getinfofromdeb ${DEBSPATH}/$x '$Source_$VersionWithoutEra')
    4246        if [ "${PACKAGESOURCENAME}" = "" ]; then
    4347                echo "Falla"
     
    4953                dpkg -x "${DEBSPATH}/${x}" "${UNCOMPRESSEDDEB}"
    5054                buildChangelog $DESTPATH
     55                buildDesktopInfo $DESTPATH $(getinfofromdeb ${DEBSPATH}/$x '$Package')
    5156                rm -r ${UNCOMPRESSEDDEB}
    5257        fi
Note: See TracChangeset for help on using the changeset viewer.