[Title] Fixed a duplication variable
authordonghyuk.yang <donghyuk.yang@samsung.com>
Wed, 22 Aug 2012 02:27:38 +0000 (11:27 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Wed, 22 Aug 2012 02:27:38 +0000 (11:27 +0900)
[Type]
[Module]
[Priority]
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

src/pkg_server/client.rb

index acb3e6ff489d8a131b9f49bfebb45af5386cb97a..75a0480c9241a56fc1c11ce589be9b64dddaccca 100644 (file)
@@ -55,7 +55,7 @@ class Client
        OS_INFO_FILE = "os_info"
        ARCHIVE_PKG_LIST_FILE = "archive_pkg_list"      
     
-    attr_accessor :server_addr, :location, :pkg_hash_os, :is_server_remote, :installed_pkg_hash_loc, :archive_pkg_list, :all_dep_list, :log, :support_os_list, :config_dist_path, :download_path, :snapshot_path, :snapshots_path, :is_snapshot_url
+    attr_accessor :server_addr, :location, :pkg_hash_os, :is_server_remote, :installed_pkg_hash_loc, :archive_pkg_list, :all_dep_list, :log, :support_os_list, :config_dist_path, :download_path, :snapshot_path, :snapshots_path, :snapshot_url
 
     public
     # initialize
@@ -75,10 +75,10 @@ class Client
                if server_addr.strip.end_with? "/" then server_addr = server_addr.chop end
 
                @snapshot_path = nil
-               @is_snapshot_url = false
+               @snapshot_url = false
 
                if is_snapshot_url(server_addr) then
-                       @is_snapshot_url = true                         
+                       @snapshot_url = true                            
                        @server_addr, @snapshot_path = split_addr_and_snapshot(server_addr) 
                else                    
                @server_addr = server_addr
@@ -121,7 +121,7 @@ class Client
     public
     # update package list from server
     def update()
-               if not @is_snapshot_url then            
+               if not @snapshot_url then               
                        $get_snapshot_mutex.synchronize {
                                @snapshot_path = get_lastest_snapshot(@is_server_remote)
                        }