stage-manager: Fix removal of installed packages
authorTom Rini <tom_rini@mentor.com>
Mon, 1 Nov 2010 19:27:24 +0000 (12:27 -0700)
committerTom Rini <tom_rini@mentor.com>
Mon, 1 Nov 2010 19:27:24 +0000 (12:27 -0700)
Currently, the status line for installed pstaging packages will ready
'Status: install user installed' but we check for 'install ok installed'
so the check fails and we don't remove.  Fix the check to look for user
rather than ok.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/stage-manager/files/stage-manager-ipkg
recipes/stage-manager/stagemanager-native_0.0.1.bb

index 53c172e..105ea54 100755 (executable)
@@ -431,7 +431,7 @@ ipkg_status_matching() {
 ipkg_status_installed_sd() {
        local sd="$1"
        local pkg="$2"
-       ipkg_status_sd $sd $pkg Status | grep -q "Status: install ok installed"
+       ipkg_status_sd $sd $pkg Status | grep -q "Status: install user installed"
 }
 
 ipkg_status_installed_all() {
index b54c38d..9577749 100644 (file)
@@ -1,5 +1,5 @@
 DESCRIPTION = "Helper script for packaged-staging.bbclass"
-PR = "r14"
+PR = "r15"
 
 SRC_URI = "file://stage-manager \
            file://stage-manager-ipkg \