Changeset 2975


Ignore:
Timestamp:
Dec 1, 2016, 12:41:24 PM (3 years ago)
Author:
kbut
Message:

build icon touch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-up/trunk/fuentes/lliurex-up-pool-scripts/usr/bin/runpart-from-repository

    r2974 r2975  
    88function buildChangelog(){
    99        DESTPATH="$1"
     10        PACKAGESOURCENAME="$2"
     11       
     12
    1013        CHANGELOGFILE=$(find ${UNCOMPRESSEDDEB} -name changelog.Debian.gz)
    1114        test -e "${CHANGELOGFILE}" || CHANGELOGFILE=$(find ${UNCOMPRESSEDDEB} -name changelog.gz)
     
    1821                echo "Fail on $PACKAGE"
    1922        fi
     23        mkdir -p "${DESTPATH}/token/"
     24        touch "${DESTPATH}/token/${PACKAGESOURCENAME}.changelog"
    2025}
    2126
     
    3439                fi
    3540        done
     41        mkdir -p "${DESTPATH}/token/"
     42        touch "${DESTPATH}/token/${PACKAGENAME}.icons"
    3643}
    3744
     
    4653        FOLDERDEB=$(dirname $x)
    4754        PACKAGESOURCENAME=$(getinfofromdeb ${DEBSPATH}/$x '${Source}_${VersionWithoutEra}')
     55        PACKAGENAME=$(getinfofromdeb ${DEBSPATH}/$x '${Package}')
    4856        if [ "${PACKAGESOURCENAME}" = "" ]; then
    4957                echo "Falla"
     
    5159        fi
    5260        DESTPATH="${POOLPATH}/${CHANGELOGSFOLDER}/pool/${FOLDERDEB}/${PACKAGESOURCENAME}"
    53         if [ ! -e "${DESTPATH}" ] ; then
     61        if [ ! -e "${DESTPATH}/token/${PACKAGESOURCENAME}.changelog" -o ! -e "${DESTPATH}/token/${PACKAGENAME}.icons" ] ; then
    5462                mkdir "${UNCOMPRESSEDDEB}"
    5563                dpkg -x "${DEBSPATH}/${x}" "${UNCOMPRESSEDDEB}"
    56                 buildChangelog $DESTPATH
    57                 buildDesktopInfo $DESTPATH $(getinfofromdeb ${DEBSPATH}/$x '${Package}')
     64                [ -e "${DESTPATH}/token/${PACKAGESOURCENAME}.changelog" ] || buildChangelog $DESTPATH $PACKAGESOURCENAME
     65                [ -e "${DESTPATH}/token/${PACKAGENAME}.icons" ] || buildDesktopInfo $DESTPATH $PACKAGENAME
    5866                rm -r ${UNCOMPRESSEDDEB}
    5967        fi
Note: See TracChangeset for help on using the changeset viewer.