[Title] // fixed bug upgrade log
authordev.sungmin.kim <dev.sungmin.kim@samsung.com>
Mon, 3 Sep 2012 08:40:18 +0000 (17:40 +0900)
committerdev.sungmin.kim <dev.sungmin.kim@samsung.com>
Mon, 3 Sep 2012 08:40:18 +0000 (17:40 +0900)
[Type]      //
[Module]    //
[Priority]  //
[CQ#]       //
[Redmine#]  //
[Problem]   //
[Cause]     //
[Solution]  //
[TestCase]  //

package/pkginfo.manifest
upgrade

index d4d43a6367f20cfa9a13f3d27f5a07360df5897c..7f1fcbf15d31d7a27cb63848969221ab454460fa 100644 (file)
@@ -1,5 +1,5 @@
 Source : dibs
-Version :0.99.29
+Version :0.99.30
 Maintainer : taejun ha<taejun.ha@samsung.com>, jiil hyoun <jiil.hyoun@samsung.com>, donghyuk yang <donghyouk.yang@samsung.com>, donghee yang <donghee.yang@samsung.com>, sungmin kim <dev.sungmin.kim@samsung.com
 
 Package : dibs
diff --git a/upgrade b/upgrade
index 98a61bec46dca8bd729212eda3cc56ae99f01cc1..8a8629faf89bd799e4b049306d0450dd02cb080a 100755 (executable)
--- a/upgrade
+++ b/upgrade
@@ -129,11 +129,14 @@ begin
        BUILD_CONFIG_ROOT = "#{Utils::HOME}/.build_tools/build_server/#{svr_name}"
        BUILD_FRIENDS_FILE = "#{BUILD_CONFIG_ROOT}/friends"
 
+       if not File.exist? BACKUP_ROOT then FileUtils.mkdir_p(BACKUP_ROOT) end
        log = Log.new( "#{BACKUP_ROOT}/log" )
 
        if not install_opt then
+               log.info "Upgrade Start..."
                # Backup current dibs
-               if File.exist? BACKUP_ROOT then FileUtils.rm_rf(BACKUP_ROOT) end
+               if File.exist? PREV_VER_PATH then FileUtils.rm_rf(PREV_VER_PATH) end
+               if File.exist? NEW_VER_PATH then FileUtils.rm_rf(NEW_VER_PATH) end
                FileUtils.mkdir_p(PREV_VER_PATH)
                FileUtils.mkdir_p(NEW_VER_PATH)
                FileUtils.cp_r("#{dibs_path}/.", PREV_VER_PATH, :preserve => true)