[SCM] eclipse - Powerful IDE written in java - Debian package. branch, master, updated. ce3cb834aac1369e251dba156939def48a406a6b

Niels Thykier nthykier-guest at alioth.debian.org
Sun Jan 24 17:44:09 UTC 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "eclipse - Powerful IDE written in java - Debian package.".

The branch, master has been updated
       via  ce3cb834aac1369e251dba156939def48a406a6b (commit)
      from  4aad529e96627c189d407d3f2730e2cc14b63724 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ce3cb834aac1369e251dba156939def48a406a6b
Author: Niels Thykier <niels at thykier.net>
Date:   Sun Jan 24 18:44:02 2010 +0100

    Inject update-sites on first run. Closes: LP: #460944e

-----------------------------------------------------------------------

Summary of changes:
 debian/changelog     |    1 +
 debian/extra/eclipse |   35 +++++++++++++++++++++++++++++++++--
 2 files changed, 34 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2f75149..144fe1e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -41,6 +41,7 @@ eclipse (3.5.1+repack-1) UNRELEASED; urgency=low
     archs/builds. (LP: #471859)
   * Move eclipse.ini into /etc (LP: #43162)
   * Set a sane file limit for osgi-bundles. (Closes: #558693, LP: #293573)
+  * Inject update sites on first run. (LP: #460944)
 
  -- Debian Orbital Alignment Team <pkg-java-maintainers at lists.alioth.debian.org>  Tue, 01 Dec 2009 20:28:17 +0100
 
diff --git a/debian/extra/eclipse b/debian/extra/eclipse
index ad93732..506cfd9 100644
--- a/debian/extra/eclipse
+++ b/debian/extra/eclipse
@@ -6,5 +6,36 @@
 export GDK_NATIVE_WINDOWS=true
 
 xuldir=/usr/lib/xulrunner-$(/usr/bin/xulrunner-1.9.1 --gre-version)
-export LD_LIBRARY_PATH=$xuldir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
-exec /usr/lib/eclipse/eclipse "$@"
+
+run_eclipse() {
+    LD_LIBRARY_PATH=$xuldir${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} /usr/lib/eclipse/eclipse "$@"
+}
+
+inject_update_site(){
+    if [ ! -e "$1" ] ; then
+	echo "W: Cannot find $1" 2>&1
+	return 1
+    fi
+    cat - >>"$1" <<EOF
+repositories/http\:__download.eclipse.org_releases_galileo/enabled=true
+repositories/http\:__download.eclipse.org_releases_galileo/isSystem=false
+repositories/http\:__download.eclipse.org_releases_galileo/nickname=Galileo Update Site
+repositories/http\:__download.eclipse.org_releases_galileo/uri=http\://download.eclipse.org/releases/galileo/
+EOF
+
+}
+
+
+if [ ! -e ~/eclipse/ ] ; then
+    run_eclipse -clean -initialize
+    settings=`echo ~/.eclipse/org.eclipse.platform_*/p2/org.eclipse.equinox.p2.engine/profileRegistry/PlatformProfile.profile/.data/.settings/`
+    if [ ! -d "$settings" ] ; then
+	echo "W: Cannot inject update-sites, cannot find the correct config." 2>&1
+    else
+	( inject_update_site "$settings/org.eclipse.equinox.p2.metadata.repository.prefs" && \
+	  inject_update_site "$settings/org.eclipse.equinox.p2.artifact.repository.prefs" && \
+	  echo "I: Injected update sites" ) || echo "W: Could not inject update sites." 2>&1
+    fi
+fi
+
+run_eclipse "$@"


hooks/post-receive
-- 
eclipse - Powerful IDE written in java - Debian package.



More information about the pkg-java-commits mailing list