Ignore:
Timestamp:
Oct 8, 2007, 11:39:31 AM (12 years ago)
Author:
afb@…
Message:

version upgrade, add livecheck

Location:
trunk/dports/sysutils/repoview
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/repoview/Portfile

    r27584 r29745  
    44
    55name                    repoview
    6 version                 0.6.0
     6version                 0.6.1
    77categories              sysutils
    88platforms               darwin
     
    1616homepage                http://linux.duke.edu/projects/mini/repoview/
    1717master_sites            http://mricon.com/downloads/repoview/
    18 checksums               md5 2513a5be6eccdd303474939e828da79f \
    19                                 sha1 567c7bb8da10ad6ba4081e797bc68df1a9f27f0e \
    20                                 rmd160 1a74935a107fdc85bab32b82401599ab3d4fc734
     18checksums               md5 88edc05aba35e4b2734ad9cc11759438 \
     19                                sha1 43c7f98629377a914555a4d9416164a417a2e64b \
     20                                rmd160 5cfb28fd5c577d88938fab62d71c66c5b964cea4
    2121patchfiles              patch-repoview.py
    2222
     
    3737        copy ${worksrcpath}/templates ${destroot}${prefix}/share/repoview/templates
    3838}
     39
     40livecheck.check regex
     41livecheck.url   ${homepage}
     42livecheck.regex Latest version is \[a-zA-Z\]*-(\[0-9.\]*)
  • trunk/dports/sysutils/repoview/files/patch-repoview.py

    r27584 r29745  
    1010 ##
    1111 # Some hardcoded constants
    12 @@ -488,7 +488,11 @@
    13                       ORDER BY date DESC LIMIT 1''' % pkg_key
    14              ocursor = self.oconn.cursor()
    15              ocursor.execute(query)
    16 -            (author, time_added, changelog) = ocursor.fetchone()
    17 +            row = ocursor.fetchone()
    18 +            if row:
    19 +                (author, time_added, changelog) = row
    20 +            else:
    21 +                (author, time_added, changelog) = (vendor, time_build, "Build")
    22              # strip email and everything that follows from author
    23              try:
    24                  author = author[:author.index('<')].strip()
Note: See TracChangeset for help on using the changeset viewer.