This file is indexed.

/usr/bin/eclipse is in eclipse-platform 3.8.1-7.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

ECLIPSE=/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_indigo/enabled=true
repositories/http\:__download.eclipse.org_releases_indigo/isSystem=false
repositories/http\:__download.eclipse.org_releases_indigo/nickname=Indigo Update Site
repositories/http\:__download.eclipse.org_releases_indigo/uri=http\://download.eclipse.org/releases/indigo/
EOF

}


if [ ! -d ~/.eclipse/ ] ; then
    $ECLIPSE -clean -initialize || exit $?
    artifact=$(find ~/.eclipse \
        -regex .*/profileRegistry/.*/org.eclipse.equinox.p2.artifact.repository.prefs)
    metadata=$(find ~/.eclipse \
        -regex .*/profileRegistry/.*/org.eclipse.equinox.p2.metadata.repository.prefs)
    if [ -z "$artifact" ] || [ -z "$metadata" ]; then
	echo "W: Cannot inject update-sites, cannot find the correct config." 2>&1
    else
	( inject_update_site "$artifact" && \
	  inject_update_site "$metadata" && \
	  echo "I: Injected update sites" ) || echo "W: Could not inject update sites." 2>&1
    fi
fi

exec $ECLIPSE "$@"