Executable
+119
@@ -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
|
||||
|
||||
|
||||
+18
-4
@@ -11780,7 +11780,7 @@
|
||||
<Description xml:lang="fr">Programme servant à identifiant le format d'un fichier en analysant les données binaires en cherchant des patrons connus.</Description>
|
||||
<Description xml:lang="en">Program to identify a file's format by scanning binary data for patterns.</Description>
|
||||
<Description xml:lang="tr">İkili veri taraması kullanarak (dosya uzantısına bakmadan) dosya biçimini tanımlamaya yarayan bir uygulamadır.</Description>
|
||||
<Archive type="targz" sha1sum="20fa06592291555f2b478ea2fb70b53e9e8d1f7c">ftp://ftp.astron.com/pub/file/file-5.22.tar.gz</Archive>
|
||||
<Archive type="targz" sha1sum="c817fb4c27f01934993ece3b013adbdc4deab67e">ftp://ftp.astron.com/pub/file/file-5.23.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>zlib</Dependency>
|
||||
<Dependency>python-devel</Dependency>
|
||||
@@ -11803,6 +11803,13 @@
|
||||
</Files>
|
||||
</Package>
|
||||
<History>
|
||||
<Update release="8">
|
||||
<Date>2015-06-17</Date>
|
||||
<Version>5.23</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="7">
|
||||
<Date>2015-04-02</Date>
|
||||
<Version>5.22</Version>
|
||||
@@ -13544,7 +13551,7 @@
|
||||
<Summary xml:lang="tr">Linux kernel modülleri yönetim araçları</Summary>
|
||||
<Description xml:lang="en">Linux kernel module management utilities</Description>
|
||||
<Description xml:lang="tr">Linux kernel modülleri yönetim araçları</Description>
|
||||
<Archive type="tarxz" sha1sum="40a17f9208e841b3fd74984520cc7ba309674ab3">https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-20.tar.xz</Archive>
|
||||
<Archive type="tarxz" sha1sum="b2c1a0a1f2979fd29c7b0825ed19254c332246b4">https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-21.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>chrpath</Dependency>
|
||||
<Dependency>xz-32bit</Dependency>
|
||||
@@ -13564,7 +13571,7 @@
|
||||
<Dependency>xz</Dependency>
|
||||
<Dependency>zlib</Dependency>
|
||||
<Dependency>glibc</Dependency>
|
||||
<Dependency version="20">libkmod</Dependency>
|
||||
<Dependency version="21">libkmod</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
@@ -13593,7 +13600,7 @@
|
||||
<Name>libkmod-devel</Name>
|
||||
<PartOf>system.devel</PartOf>
|
||||
<RuntimeDependencies>
|
||||
<Dependency version="20">libkmod</Dependency>
|
||||
<Dependency version="21">libkmod</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
@@ -13627,6 +13634,13 @@
|
||||
</Files>
|
||||
</Package>
|
||||
<History>
|
||||
<Update release="15">
|
||||
<Date>2015-06-17</Date>
|
||||
<Version>21</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="14">
|
||||
<Date>2015-03-26</Date>
|
||||
<Version>20</Version>
|
||||
|
||||
@@ -1 +1 @@
|
||||
231e5081fc08d125c4fe30db25158e2412d30d68
|
||||
9452e4236012e631ccdaad877417193e734ac352
|
||||
Binary file not shown.
@@ -1 +1 @@
|
||||
ff2963f8da5acb9ccea915c7de7b41194d58ea7e
|
||||
a0fbaafe513a4b5180a80d516debf213a683ad2b
|
||||
@@ -31,7 +31,7 @@
|
||||
<Patch level="1">move_is_mountinfo.patch</Patch>-->
|
||||
<!-- makeing /var/log/lastlog -->
|
||||
<Patch level="1">upstream/util-linux-ng-2.21-login-lastlog.patch</Patch>
|
||||
</Patches>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
@@ -73,14 +73,14 @@
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libutil-linux</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Conflicts>
|
||||
<Conflicts>
|
||||
<Package releaseTo="8">uuidd</Package>
|
||||
</Conflicts>
|
||||
<!-- FIXME: Add COMAR service -->
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin/uuidgen</Path>
|
||||
<Path fileType="executable">/usr/sbin/uuidd</Path>
|
||||
<Path fileType="config">/usr/lib/tmpfiles.d/uuidd.conf</Path>
|
||||
<Path fileType="config">/usr/lib/tmpfiles.d/uuidd.conf</Path>
|
||||
<Path fileType="man">/usr/share/man/man1/uuidgen.1</Path>
|
||||
<Path fileType="man">/usr/share/man/man8/uuidd.8</Path>
|
||||
</Files>
|
||||
@@ -122,7 +122,7 @@
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libutil-linux</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Conflicts>
|
||||
<Conflicts>
|
||||
<Package releaseTo="8">libblkid-devel</Package>
|
||||
<Package releaseTo="8">libuuid-devel</Package>
|
||||
</Conflicts>
|
||||
|
||||
Reference in New Issue
Block a user