This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-console.git
commit 6d23f4fb08266c4ac4954ac7ac065055e6367f9c Author: Bertrand Delacretaz <[email protected]> AuthorDate: Tue Oct 2 08:12:38 2012 +0000 SLING-2612 - EXCLUDED applies only to INSTALLED state IMO, and add (*) after INSTALLED if there's additional info git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1392785 13f79535-47bb-0310-9956-ffa450edef68 --- .../core/impl/console/OsgiInstallerWebConsolePlugin.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/sling/installer/core/impl/console/OsgiInstallerWebConsolePlugin.java b/src/main/java/org/apache/sling/installer/core/impl/console/OsgiInstallerWebConsolePlugin.java index dde505c..003698b 100644 --- a/src/main/java/org/apache/sling/installer/core/impl/console/OsgiInstallerWebConsolePlugin.java +++ b/src/main/java/org/apache/sling/installer/core/impl/console/OsgiInstallerWebConsolePlugin.java @@ -91,8 +91,13 @@ public class OsgiInstallerWebConsolePlugin extends GenericServlet { } private String getState(final Resource rsrc) { - if ( rsrc.getAttribute(TaskResource.ATTR_INSTALL_EXCLUDED) != null ) { - return "EXCLUDED"; + // INSTALLED state has some variants + if ( rsrc.getState() == ResourceState.INSTALLED) { + if(rsrc.getAttribute(TaskResource.ATTR_INSTALL_EXCLUDED) != null ) { + return "EXCLUDED"; + } else if(rsrc.getAttribute(TaskResource.ATTR_INSTALL_INFO) != null) { + return "INSTALLED(*)"; + } } return rsrc.getState().toString(); } -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
