Ignore:
Timestamp:
Aug 23, 2003, 7:07:25 PM (14 years ago)
Author:
fkr
Message:

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

don't rebuild rpm, if it newer than the portfile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portrpmpackage.tcl

    r3181 r3327  
    5151
    5252proc rpmpackage_pkg {portname portversion portrevision} {
    53     global package.destpath portdbpath destpath workpath prefix portresourcepath categories maintainers description long_description homepage epoch
     53    global UI_PREFIX package.destpath portdbpath destpath workpath prefix portresourcepath categories maintainers description long_description homepage epoch portpath
    5454
    5555    set rpmdestpath ""
     
    6262        system "mkdir -p ${pkgpath}/SRPMS"
    6363        set rpmdestpath "--define '_topdir ${pkgpath}'"
     64    }
     65
     66    foreach dir { "${prefix}/src/apple/RPMS" "/usr/src/apple/RPMS" "/darwinports/rpms/RPMS"} {
     67        foreach arch {"ppc" "i386" "fat"} {
     68            set rpmpath "$dir/${arch}/${portname}-${portversion}-${portrevision}.${arch}.rpm"
     69            if {[file readable $rpmpath] && ([file mtime ${rpmpath}] >= [file mtime ${portpath}/Portfile])} {
     70                ui_msg "$UI_PREFIX [format [msgcat::mc "RPM package for %s-%s is up-to-date"] ${portname} ${portversion}]"
     71                return 0
     72            }
     73        }
    6474    }
    6575
Note: See TracChangeset for help on using the changeset viewer.