[Title] Fixed a bug that removing packages does not generate snapshot
authordonghee yang <donghee.yang@samsung.com>
Thu, 16 Aug 2012 02:52:55 +0000 (11:52 +0900)
committerdonghee yang <donghee.yang@samsung.com>
Thu, 16 Aug 2012 02:52:55 +0000 (11:52 +0900)
src/pkg_server/packageServer.rb

index 1c9d37d9bcce27c7c523c9c1d648d7b514ebb5a3..bcc1cded5019ccec0302480505c3b1f761c24c09 100644 (file)
@@ -394,7 +394,11 @@ class PackageServer
                @lock_file = Utils.file_lock(PackageServerConfig::LOCK_FILE)
                
                distribution.remove_pkg(pkg_name_list, os, recursive)
-               
+       
+               # generate snapshot     
+               @log.info "generaging snapshot"
+               distribution.generate_snapshot("", "", false)
+
                Utils.file_unlock(@lock_file)
                @log.output( "package removed successfully", Log::LV_USER )
        end