[MacPorts] Scripts/testport_script modified

MacPorts noreply at macports.org
Fri Apr 27 11:01:41 PDT 2012


Changed page "Scripts/testport_script" by kato23 at mailinator.com from 84.163.34.10*
Page URL: <https://trac.macports.org/wiki/Scripts/testport_script>
Diff URL: <https://trac.macports.org/wiki/Scripts/testport_script?action=diff&version=12>
Revision 12

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: Scripts/testport_script
=========================================================================
--- Scripts/testport_script (version: 11)
+++ Scripts/testport_script (version: 12)
@@ -95,7 +95,7 @@
 
 
 do_update() {
-   do_clean_work
+   [[ $clean_all -eq 0 ]] && do_clean_work
    port selfupdate
    port outdated
    [[ $(port outdated | wc -l) -gt 1 ]] && port upgrade -R -u outdated
@@ -327,8 +327,8 @@
 if [[ $all_new -eq 0 ]] && [[ -x "${MP_PREFIX}/bin/port" ]]; then
    if [[ $clean_all -eq 1 ]]; then
       do_clean_all
-   else
-      do_clean_work
+   elif [[ -d "$(port dir "$@")/work" ]]; then
+      port -f clean --all "$@"
    fi
 fi
 

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on Scripts/testport_script. If it was not you, please
report to .


More information about the macports-changes mailing list