Changeset 2978


Ignore:
Timestamp:
Dec 1, 2016, 3:05:14 PM (3 years ago)
Author:
kbut
Message:

wip

Location:
lliurex-up/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-up/trunk/fuentes/LliurexUpCore.py

    r2932 r2978  
    1212                self.defaultVersion = 'xenial'
    1313                self.processPath = '/var/run/lliurex-up'
     14                self.changelogsPath = '/var/run/lliurex-up/changelogs'
    1415                self.processSourceslist = '/var/run/lliurex-up/sourceslist'
    1516                self.n4d = xmlrpclib.ServerProxy('https://localhost:9779')
     
    2829                os.mkdir(self.processPath)
    2930                os.mkdir(self.processSourceslist)
     31                os.mkdir(self.changelogsPath)
    3032                self.writeDefaultSourceslist()
    3133
     
    200202                                packageInfo[package]['candidate'] = raw[0][1:]
    201203                        packageInfo[package].pop('raw')
     204                        packageInfo[package]['changelog'] = os.path.join(self.changelogsPath,package)
     205                        os.system('LANG=C apt-get changelog %s > %s%s'%(package,self.changelogsPath,package))
     206                        packageInfo[package]['icon'] =
    202207                return packageInfo
    203208
  • lliurex-up/trunk/fuentes/lliurex-up-pool-scripts/usr/bin/runpart-from-repository

    r2975 r2978  
    1717                gunzip "${CHANGELOGFILE}" || echo "${CHANGELOGFILE}"
    1818                cp "${CHANGELOGFILE%*.gz}" "${DESTPATH}/changelog"
     19                mkdir -p "${DESTPATH}/token/"
     20                touch "${DESTPATH}/token/${PACKAGESOURCENAME}.changelog"
    1921        else
    2022                PACKAGE="$(basename $DESTPATH)"
    2123                echo "Fail on $PACKAGE"
    2224        fi
    23         mkdir -p "${DESTPATH}/token/"
    24         touch "${DESTPATH}/token/${PACKAGESOURCENAME}.changelog"
    2525}
    2626
     
    3636                AUX="$(rgrep -i 'Icon=' $x | sed -e '')"
    3737                if [ "$AUX" != "" ]; then
     38                        mkdir -p "${DESTPATH}"
    3839                        echo "${PACKAGENAME} : $AUX" >> ${DESTPATH}/icons
    3940                fi
Note: See TracChangeset for help on using the changeset viewer.