On RPM/DEB/etc installation, don't offer the self upgrade. It should be done by the native package manager.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@28479 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-03-10 02:30:10 +00:00
1 parent 5b437679a1
commit 1eb72ace8d
1 file changed
+2 -1
@@ -147,7 +147,8 @@ public abstract class Lifecycle implements ExtensionPoint {
*/
public boolean canRewriteHudsonWar() {
// if we don't know where hudson.war is, it's impossible to replace.
return getHudsonWar()!=null;
File f = getHudsonWar();
return f!=null && f.canWrite();
}
/**