Moving java-pkg_init_paths_ call above the dodir call.
authorPetteri Räty <betelgeuse@gentoo.org>
Sat, 2 Dec 2006 21:36:55 +0000 (21:36 +0000)
committerPetteri Räty <betelgeuse@gentoo.org>
Sat, 2 Dec 2006 21:36:55 +0000 (21:36 +0000)
eclass/java-utils-2.eclass

index 4b260b528cd9da854129e30afc9a31bfcbfc278a..92306c5ed9e81e7627cc69d756ab121a86a7509b 100644 (file)
@@ -1617,10 +1617,10 @@ java-pkg_init_paths_() {
 # ------------------------------------------------------------------------------
 # TODO change to do-write, to match everything else
 java-pkg_do_write_() {
+       java-pkg_init_paths_
        # Create directory for package.env
        dodir "${JAVA_PKG_SHAREPATH}"
        if [[ -n "${JAVA_PKG_CLASSPATH}" || -n "${JAVA_PKG_LIBRARY}" || -f "${JAVA_PKG_DEPEND}" ]]; then
-               java-pkg_init_paths_
                # Create package.env
                (
                        echo "DESCRIPTION=\"${DESCRIPTION}\""
@@ -1656,7 +1656,6 @@ java-pkg_do_write_() {
        fi
 }
 
-
 # ------------------------------------------------------------------------------
 # @internal-function java-pkg_record-jar_
 #