Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fixes for dependency on svn
Michael Christenc715d19c0906
diff --git a/defaults/yacy.init b/defaults/yacy.initindex 3c8efb7be..c233ebadb 100644--- a/defaults/yacy.init+++ b/defaults/yacy.init@@ -125,7 +125,7 @@ update.cycle = 168# It is recommended to set this list to low developer version numbersupdate.blacklist = ...[123]# a update can also restricted with a concept property, which can decide if an-# update is only valid if it either is a main release or any svn release including new development releases+# update is only valid if it either is a main release or any release including new development releases# Valid keywords are 'main' and 'any'update.concept = any# the following values are set automatically:diff --git a/htroot/ConfigUpdate_p.java b/htroot/ConfigUpdate_p.javaindex 39dc53875..25f04514a 100644--- a/htroot/ConfigUpdate_p.java+++ b/htroot/ConfigUpdate_p.java@@ -127,7 +127,7 @@ public class ConfigUpdate_p {sb.getLog().logInfo("AUTO-UPDATE: downloading more recent release " + updateVersion.getUrl());final File downloaded = updateVersion.downloadRelease();prop.putHTML("candeploy_autoUpdate_downloadedRelease", updateVersion.getName());- final boolean devenvironment = new File(sb.getAppPath(), ".svn").exists();+ final boolean devenvironment = new File(sb.getAppPath(), ".git").exists();if (devenvironment) {sb.getLog().logInfo("AUTO-UPDATE: omitting update because this is a development environment");prop.put("candeploy_autoUpdate", "3");@@ -156,7 +156,7 @@ public class ConfigUpdate_p {// version informationfinal String versionstring = yacyBuildProperties.getVersion() + "/" + yacyBuildProperties.getSVNRevision();prop.putHTML("candeploy_versionpp", versionstring);- final boolean devenvironment = new File(sb.getAppPath(), ".svn").exists();+ final boolean devenvironment = new File(sb.getAppPath(), ".git").exists();float thisVersion = Float.parseFloat(yacyBuildProperties.getVersion());// cut off the SVN Rev in the Versiontry {diff --git a/htroot/Steering.java b/htroot/Steering.javaindex b8a028411..6e451dbcb 100644--- a/htroot/Steering.java+++ b/htroot/Steering.java@@ -73,7 +73,7 @@ public class Steering {if (post.containsKey("update")) {Log.logInfo("STEERING", "update request from " + requestIP);- final boolean devenvironment = new File(sb.getAppPath(), ".svn").exists();+ final boolean devenvironment = new File(sb.getAppPath(), ".git").exists();final String releaseFileName = post.get("releaseinstall", "");final File releaseFile = new File(sb.getDataPath(), "DATA/RELEASE/".replace("/", File.separator) + releaseFileName);if ((!devenvironment) && (releaseFileName.length() > 0) && (releaseFile.exists())) {diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.javaindex 91cba9587..fa21f75f7 100644--- a/source/net/yacy/search/Switchboard.java+++ b/source/net/yacy/search/Switchboard.java@@ -1788,7 +1788,7 @@ public final class Switchboard extends serverSwitch {// there is a version that is more recent. Load it and re-start with itthis.log.logInfo("AUTO-UPDATE: downloading more recent release " + updateVersion.getUrl());final File downloaded = updateVersion.downloadRelease();- final boolean devenvironment = new File(this.getAppPath(), ".svn").exists();+ final boolean devenvironment = new File(this.getAppPath(), ".git").exists();if (devenvironment) {this.log.logInfo("AUTO-UPDATE: omitting update because this is a development environment");} else if ((downloaded == null) || (!downloaded.exists()) || (downloaded.length() == 0)) {diff --git a/yacy-svn-4.spec b/yacy-svn-4.specindex cc3dae88d..74bb4c4f6 100644--- a/yacy-svn-4.spec+++ b/yacy-svn-4.spec@@ -9,8 +9,8 @@ Version: @REPL_VERSION@_@REPL_REVISION_NR@Release: 3License: GPLGroup: Application/Internet-Source0: svn://svn.berlios.de/yacy/trunk-URL: http://www.yacy.net/yacy/+Source0: [email protected]:yacy/rc1.git+URL: http://yacy.netRequires: bashRequires: sudoRequires: coreutils@@ -90,6 +90,7 @@ cp AUTHORS COPYRIGHT ChangeLog gpl.txt readme.txt ${RPM_BUILD_ROOT}$YACYDDIR/install -m 744 *.sh ${RPM_BUILD_ROOT}$YACYCDIR/ # start/stop/kill scriptsrm -r `find ${RPM_BUILD_ROOT}/ -type d -name '.svn'` # delete unwanted .svn-folders+rm -r `find ${RPM_BUILD_ROOT}/ -type d -name '.git'` # delete unwanted .git-folders# location for init-scriptinstall -d ${RPM_BUILD_ROOT}/etc/init.d/