[124153] trunk/base/src/macports1.0/reclaim.tcl
cal at macports.org
cal at macports.org
Tue Aug 19 16:58:18 PDT 2014
Revision: 124153
https://trac.macports.org/changeset/124153
Author: cal at macports.org
Date: 2014-08-19 16:58:18 -0700 (Tue, 19 Aug 2014)
Log Message:
-----------
base: port reclaim: Don't fail when no ports are installed
Modified Paths:
--------------
trunk/base/src/macports1.0/reclaim.tcl
Modified: trunk/base/src/macports1.0/reclaim.tcl
===================================================================
--- trunk/base/src/macports1.0/reclaim.tcl 2014-08-19 23:53:55 UTC (rev 124152)
+++ trunk/base/src/macports1.0/reclaim.tcl 2014-08-19 23:58:18 UTC (rev 124153)
@@ -264,8 +264,9 @@
# A multidimensional list where each app is a sublist, i.e., [{First Application Info} {Second Application Info} {...}]
# Indexes of each sublist are: 0 = name, 1 = version, 2 = revision, 3 = variants, 4 = activity, and 5 = epoch.
- if { [catch {set installed [registry::installed]} result]} {
+ if {[catch {set installed [registry::installed]} result]} {
ui_error "no installed applications found."
+ return {}
}
return $installed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140819/5647ae21/attachment.html>
More information about the macports-changes
mailing list