Ticket #25671: unprivileged_install_error.diff
File unprivileged_install_error.diff, 859 bytes (added by jmroot (Joshua Root), 14 years ago) |
---|
-
src/port1.0/portutil.tcl
1449 1449 1450 1450 1451 1451 proc eval_targets {target} { 1452 global targets target_state_fd name version revision portvariants epoch ports_dryrun user_options 1452 global targets target_state_fd name version revision portvariants epoch ports_dryrun user_options usealtworkpath 1453 1453 set dlist $targets 1454 1454 1455 if {$usealtworkpath && ($target == "install" || $target == "activate")} { 1456 return -code error "insufficient privileges to run target '$target'" 1457 } 1458 1455 1459 # the statefile will likely be autocleaned away after install, 1456 1460 # so special-case already-completed install and activate 1457 1461 if {[registry_exists $name $version $revision $portvariants]} {