[27584] trunk/dports/sysutils/repoview

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 9 01:40:45 PDT 2007


Revision: 27584
          http://trac.macosforge.org/projects/macports/changeset/27584
Author:   afb at macports.org
Date:     2007-08-09 01:40:45 -0700 (Thu, 09 Aug 2007)

Log Message:
-----------
major version update, 0.6.0

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	2007-08-09 08:39:49 UTC (rev 27583)
+++ trunk/dports/sysutils/repoview/Portfile	2007-08-09 08:40:45 UTC (rev 27584)
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name			repoview
-version			0.5.2
+version			0.6.0
 categories		sysutils
 platforms		darwin
 maintainers		afb at macports.org
@@ -14,17 +14,17 @@
 			easily customizeable.
 
 homepage		http://linux.duke.edu/projects/mini/repoview/
-master_sites		${homepage}download/
-checksums		md5 cc15d6ab4df4217db0ef8f0608343521 \
-				sha1 92d4e421775f0616ea90b7307776b50c222e479f \
-				rmd160 4b68b84095104a8e5ff6657c76e9ff8d63fc5b9a
+master_sites		http://mricon.com/downloads/repoview/
+checksums		md5 2513a5be6eccdd303474939e828da79f \
+				sha1 567c7bb8da10ad6ba4081e797bc68df1a9f27f0e \
+				rmd160 1a74935a107fdc85bab32b82401599ab3d4fc734
 patchfiles		patch-repoview.py
 
 depends_run		port:python24 port:yum port:py-kid
 
 post-patch {
 	reinplace "s|/usr/bin/python|${prefix}/bin/python2.4|g" ${worksrcpath}/repoview.py
-	reinplace "s|'./templates'|'${prefix}/share/repoview/templates'|g" ${worksrcpath}/repoview.py
+	reinplace "s|/usr/share/repoview|${prefix}/share/repoview|g" ${worksrcpath}/repoview.py
 }
 
 use_configure	no

Modified: trunk/dports/sysutils/repoview/files/patch-repoview.py
===================================================================
--- trunk/dports/sysutils/repoview/files/patch-repoview.py	2007-08-09 08:39:49 UTC (rev 27583)
+++ trunk/dports/sysutils/repoview/files/patch-repoview.py	2007-08-09 08:40:45 UTC (rev 27584)
@@ -1,57 +1,24 @@
-# 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 @@
+--- 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 @@
  try:
-     from yum.comps import Comps, CompsException
-     from yum.mdparser import MDParser
--    from repomd.repoMDObject import RepoMD
-+    from yum.repoMDObject import RepoMD
+     import sqlite3 as sqlite
  except ImportError:
-     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)
+-    import sqlite
++    from pysqlite2 import dbapi2 as sqlite
+ 
+ ##
+ # Some hardcoded constants
+@@ -488,7 +488,11 @@
+                      ORDER BY date DESC LIMIT 1''' % pkg_key
+             ocursor = self.oconn.cursor()
+             ocursor.execute(query)
+-            (author, time_added, changelog) = ocursor.fetchone()
++            row = ocursor.fetchone()
++            if row:
++                (author, time_added, changelog) = row
++            else:
++                (author, time_added, changelog) = (vendor, time_build, "Build")
+             # strip email and everything that follows from author
+             try:
+                 author = author[:author.index('<')].strip()

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070809/0aa952cf/attachment.html


More information about the macports-changes mailing list