diff --git a/xCAT-UI/ui.old/js/xcat.js b/xCAT-UI/ui.old/js/xcat.js
index f115933e6..40c0ad06e 100644
--- a/xCAT-UI/ui.old/js/xcat.js
+++ b/xCAT-UI/ui.old/js/xcat.js
@@ -514,7 +514,18 @@ function fun_js_update()
if ("" == rpm_path)
{
//user input the repo, and we must stroe it in the cookie
- rpm_path = $('#repositoryaddr').val() + "&remember=1";
+ rpm_path = $('#repositoryaddr').val() + "&remember=3";
+ }
+ else
+ {
+ if(-1 == rpm_path.toLowerCase().indexOf("devel"))
+ {
+ rpm_path = rpm_path + "&remember=1";
+ }
+ else
+ {
+ rpm_path = rpm_path + "&remember=2";
+ }
}
$("input[type=checkbox]:checked").each(function(){
@@ -564,6 +575,6 @@ function fun_js_lsdef_edit()
placeholder : '',
onblur : 'submit'
});
-};
+}
// load progress bar
myBar.loaded('xcat.js');
diff --git a/xCAT-UI/ui.old/update.php b/xCAT-UI/ui.old/update.php
index 7a70f5e86..db9468509 100644
--- a/xCAT-UI/ui.old/update.php
+++ b/xCAT-UI/ui.old/update.php
@@ -38,7 +38,7 @@
}
echo "name='reporadio' value='" . $StableRepository . "'>" . $StableRepository . "(Stable)
";
- if((1 != $_COOKIE["xcatrepository"]) && (2 != $_COOKIE["xcatrepository"]))
+ if(isset($_COOKIE["xcatrepository"]) && (1 != $_COOKIE["xcatrepository"]) && (2 != $_COOKIE["xcatrepository"]))
{
echo "Other:";
echo "";