diff --git a/find-packages-not-compiled-in-farm b/find-packages-not-compiled-in-farm new file mode 100755 index 00000000..0423639b --- /dev/null +++ b/find-packages-not-compiled-in-farm @@ -0,0 +1,119 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# find which packages were not compiled in farm +# usage: scriptname svnindex pisiindex +# + + +import os +import sys + +import urllib2 +import bz2 +import lzma + +import piksemel + +pisirepouri = "http://manap.se/pisi/pisi-index.xml.xz" +svnrepouri = "https://github.com/pisilinux/core/raw/master/pisi-index.xml.xz" + +def getIndex(uri): + try: + if "://" in uri: + rawdata = urllib2.urlopen(uri).read() + else: + rawdata = open(uri, "r").read() + except IOError: + print "could not fetch %s" % uri + return None + + if uri.endswith("bz2"): + data = bz2.decompress(rawdata) + elif uri.endswith("xz") or uri.endswith("lzma"): + data = lzma.decompress(rawdata) + else: + data = rawdata + + return data + +def parseRepo(repoURI): + pkgdict = {} + + rawData = getIndex(repoURI) + doc = piksemel.parseString(rawData) + hasSpecFile = doc.getTag("SpecFile") + + if hasSpecFile: + for parent in doc.tags("SpecFile"): + pkgname = parent.getTag("Source").getTagData("Name") + srcname = pkgname + + partof = parent.getTag("Source").getTagData("PartOf") + + lastRelease = parent.getTag("History").tags("Update").next() + release = lastRelease.getAttribute("release") + + pkgdict[srcname] = [partof, release] + else: + for parent in doc.tags("Package"): + pkgname = parent.getTagData("Name") + srcname = parent.getTag("Source").getTagData("Name") + + partof = parent.getTagData("PartOf") + + lastRelease = parent.getTag("History").tags("Update").next() + release = lastRelease.getAttribute("release") + + pkgdict[srcname] = [partof, release] + + return pkgdict + +if __name__ == "__main__": + pkgmissing = [] + pkgdifferent = [] + + if len(sys.argv) > 1: + svnrepouri = sys.argv[1] + + if len(sys.argv) > 2: + pisirepouri = sys.argv[2] + + print + print "* working on %s" % svnrepouri + svnrepo = parseRepo(svnrepouri) + + print "* working on %s" % pisirepouri + pisirepo = parseRepo(pisirepouri) + + pkglist = svnrepo.keys() + pkglist.sort() + + for i in pkglist: + if not i in pisirepo: + partof = svnrepo[i][0] + pkgmissing.append("%s/%s" % (partof.replace(".", "/"), i)) + + elif svnrepo[i][1] != pisirepo[i][1]: + partof = svnrepo[i][0] + pkgdifferent.append("%s/%s" % (partof.replace(".", "/"), i)) + + pkgmissing.sort() + pkgdifferent.sort() + + if len(pkgmissing): + print + print "* Packages missing in %s" % pisirepouri + for p in pkgmissing: + print " %s" % p + + if len(pkgdifferent): + print + print "* Packages that needs compiling" + for p in pkgdifferent: + i = p.split("/")[-1] + print " %s (%s > %s)" % (p, svnrepo[i][1], pisirepo[i][1]) + + print + + diff --git a/pisi-index.xml b/pisi-index.xml index f949788b..9918af1f 100644 --- a/pisi-index.xml +++ b/pisi-index.xml @@ -11780,7 +11780,7 @@ Programme servant à identifiant le format d'un fichier en analysant les données binaires en cherchant des patrons connus. Program to identify a file's format by scanning binary data for patterns. İkili veri taraması kullanarak (dosya uzantısına bakmadan) dosya biçimini tanımlamaya yarayan bir uygulamadır. - ftp://ftp.astron.com/pub/file/file-5.22.tar.gz + ftp://ftp.astron.com/pub/file/file-5.23.tar.gz zlib python-devel @@ -11803,6 +11803,13 @@ + + 2015-06-17 + 5.23 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + 2015-04-02 5.22 @@ -13544,7 +13551,7 @@ Linux kernel modülleri yönetim araçları Linux kernel module management utilities Linux kernel modülleri yönetim araçları - https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-20.tar.xz + https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-21.tar.xz chrpath xz-32bit @@ -13564,7 +13571,7 @@ xz zlib glibc - libkmod + libkmod /usr/bin @@ -13593,7 +13600,7 @@ libkmod-devel system.devel - libkmod + libkmod /usr/include @@ -13627,6 +13634,13 @@ + + 2015-06-17 + 21 + Version bump. + Ertuğrul Erata + ertugrulerata@gmail.com + 2015-03-26 20 diff --git a/pisi-index.xml.sha1sum b/pisi-index.xml.sha1sum index 05061a18..bb367f75 100644 --- a/pisi-index.xml.sha1sum +++ b/pisi-index.xml.sha1sum @@ -1 +1 @@ -231e5081fc08d125c4fe30db25158e2412d30d68 \ No newline at end of file +9452e4236012e631ccdaad877417193e734ac352 \ No newline at end of file diff --git a/pisi-index.xml.xz b/pisi-index.xml.xz index a5b1a9f6..0704b62f 100644 Binary files a/pisi-index.xml.xz and b/pisi-index.xml.xz differ diff --git a/pisi-index.xml.xz.sha1sum b/pisi-index.xml.xz.sha1sum index 5fa0c115..5e3facc5 100644 --- a/pisi-index.xml.xz.sha1sum +++ b/pisi-index.xml.xz.sha1sum @@ -1 +1 @@ -ff2963f8da5acb9ccea915c7de7b41194d58ea7e \ No newline at end of file +a0fbaafe513a4b5180a80d516debf213a683ad2b \ No newline at end of file diff --git a/system/base/util-linux/pspec.xml b/system/base/util-linux/pspec.xml index badfba8d..702542e8 100644 --- a/system/base/util-linux/pspec.xml +++ b/system/base/util-linux/pspec.xml @@ -31,7 +31,7 @@ move_is_mountinfo.patch--> upstream/util-linux-ng-2.21-login-lastlog.patch - + @@ -73,14 +73,14 @@ libutil-linux - + uuidd /usr/bin/uuidgen /usr/sbin/uuidd - /usr/lib/tmpfiles.d/uuidd.conf + /usr/lib/tmpfiles.d/uuidd.conf /usr/share/man/man1/uuidgen.1 /usr/share/man/man8/uuidd.8 @@ -122,7 +122,7 @@ libutil-linux - + libblkid-devel libuuid-devel