Opened 15 years ago

Closed 15 years ago

Last modified 5 years ago

#7756 closed defect (fixed)

Selfupdate rsync shouldn't specify complete path

Reported by: danielluke (Daniel J. Luke) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.2
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Schmidt))

selfupdate (like sync) should just run 'rsync' so that port's binpath is respected.

Small diff inline:

Index: darwinports.tcl
===================================================================
RCS file: /Volumes/src/cvs/od/proj/darwinports/base/src/darwinports1.0/darwinports.tcl,v
retrieving revision 1.206
diff -u -r1.206 darwinports.tcl
--- darwinports.tcl     16 Jan 2006 04:39:11 -0000      1.206
+++ darwinports.tcl     13 Mar 2006 20:58:02 -0000
@@ -1359,7 +1359,7 @@
        ui_msg "DarwinPorts base version $dp_version_old installed"
 
        ui_debug "Updating using rsync"
-       if { [catch { system "/usr/bin/rsync $rsync_options rsync://${rsync_server}/${rsync_dir} $dp_base_path" } ] } {
+       if { [catch { system "rsync $rsync_options rsync://${rsync_server}/${rsync_dir} $dp_base_path" } ] } {
                return -code error "Error: rsync failed in selfupdate"
        }

Change History (2)

comment:1 Changed 15 years ago by jberry@…

Resolution: fixed
Status: newclosed

Patched. Thanks!

comment:2 Changed 5 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Note: See TracTickets for help on using tickets.