[36741] trunk/dports/sysutils/repoview
afb at macports.org
afb at macports.org
Tue May 13 14:09:27 PDT 2008
Revision: 36741
http://trac.macosforge.org/projects/macports/changeset/36741
Author: afb at macports.org
Date: 2008-05-13 14:09:26 -0700 (Tue, 13 May 2008)
Log Message:
-----------
revert back to 0.5.2 (without sqlite) for now, but don't worry about epoch as it'll return to 0.6.2 later
Modified Paths:
--------------
trunk/dports/sysutils/repoview/Portfile
trunk/dports/sysutils/repoview/files/patch-repoview.py
Modified: trunk/dports/sysutils/repoview/Portfile
===================================================================
--- trunk/dports/sysutils/repoview/Portfile 2008-05-13 20:10:47 UTC (rev 36740)
+++ trunk/dports/sysutils/repoview/Portfile 2008-05-13 21:09:26 UTC (rev 36741)
@@ -3,7 +3,7 @@
PortSystem 1.0
name repoview
-version 0.6.2
+version 0.5.2
categories sysutils
platforms darwin
maintainers afb at macports.org
@@ -14,10 +14,10 @@
easily customizeable.
homepage https://fedorahosted.org/repoview/
-master_sites http://icon.fedorapeople.org/repoview/
-checksums md5 e6d1abf7db974da2f0dfac4072f6718c \
- sha1 667e1c5d9568576ae3bc925a48ebbad405bc682f \
- rmd160 070eb5682f99da5bd66026a7a5d730f12e2da571
+master_sites http://icon.fedorapeople.org/repoview/old/
+checksums md5 cc15d6ab4df4217db0ef8f0608343521 \
+ sha1 92d4e421775f0616ea90b7307776b50c222e479f \
+ rmd160 4b68b84095104a8e5ff6657c76e9ff8d63fc5b9a
patchfiles patch-repoview.py
depends_run port:python24 port:yum port:py-kid
@@ -25,6 +25,7 @@
post-patch {
reinplace "s|/usr/bin/python|${prefix}/bin/python2.4|g" ${worksrcpath}/repoview.py
reinplace "s|/usr/share/repoview|${prefix}/share/repoview|g" ${worksrcpath}/repoview.py
+ reinplace "s|'./templates'|'${prefix}/share/repoview/templates'|g" ${worksrcpath}/repoview.py
}
use_configure no
Modified: trunk/dports/sysutils/repoview/files/patch-repoview.py
===================================================================
--- trunk/dports/sysutils/repoview/files/patch-repoview.py 2008-05-13 20:10:47 UTC (rev 36740)
+++ trunk/dports/sysutils/repoview/files/patch-repoview.py 2008-05-13 21:09:26 UTC (rev 36741)
@@ -1,11 +1,57 @@
---- repoview.py.orig 2007-08-09 00:14:08.000000000 +0200
-+++ repoview.py 2007-08-09 00:16:14.000000000 +0200
-@@ -53,7 +53,7 @@
+# Fedora: yum-2.9-api.patch
+--- repoview.py.orig 2006-07-04 20:53:55.000000000 -0400
++++ repoview.py 2006-07-04 21:21:56.000000000 -0400
+@@ -42,7 +42,7 @@
try:
- import sqlite3 as sqlite
+ from yum.comps import Comps, CompsException
+ from yum.mdparser import MDParser
+- from repomd.repoMDObject import RepoMD
++ from yum.repoMDObject import RepoMD
except ImportError:
-- import sqlite
-+ from pysqlite2 import dbapi2 as sqlite
-
- ##
- # Some hardcoded constants
+ try:
+ from noyum.comps import Comps, CompsException
+@@ -364,7 +364,7 @@
+ except IOError:
+ return 1
+ checksum = checksum.strip()
+- if checksum != self.repodata['primary']['checksum'][1]:
++ if checksum != self.repodata['primary'].checksum[1]:
+ return 1
+ _say("RepoView: Repository has not changed. Force the run with -f.\n")
+ sys.exit(0)
+@@ -374,7 +374,7 @@
+ Utility method for parsing comps.xml.
+ """
+ _say('parsing comps...', 1)
+- loc = self.repodata['group']['relativepath']
++ loc = self.repodata['group'].location[1]
+ comps = Comps()
+ try:
+ comps.add(os.path.join(self.repodir, loc))
+@@ -436,7 +436,7 @@
+ Utility method for processing primary.xml.
+ """
+ _say('parsing primary...', 1)
+- loc = self.repodata['primary']['relativepath']
++ loc = self.repodata['primary'].location[1]
+ mdp = MDParser(os.path.join(self.repodir, loc))
+ ignored = 0
+ for package in mdp:
+@@ -507,7 +507,7 @@
+ Utility method to get data from other.xml.
+ """
+ _say('parsing other...', 1)
+- loc = self.repodata['other']['relativepath']
++ loc = self.repodata['other'].location[1]
+ otherxml = os.path.join(self.repodir, loc)
+ ignored = 0
+ mdp = MDParser(otherxml)
+@@ -789,7 +789,7 @@
+ _say('writing checksum...', 1)
+ chkfile = os.path.join(self.outdir, 'checksum')
+ fh = open(chkfile, 'w')
+- fh.write(self.repodata['primary']['checksum'][1])
++ fh.write(self.repodata['primary'].checksum[1])
+ fh.close()
+ _say('done\n')
+ _say('Moving new repoview dir in place...', 1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080513/5b1f2d74/attachment.html
More information about the macports-changes
mailing list