diff options
author | Vlastimil Babka <caster@gentoo.org> | 2009-01-07 21:41:14 +0000 |
---|---|---|
committer | Vlastimil Babka <caster@gentoo.org> | 2009-01-07 21:41:14 +0000 |
commit | 210830e11267f6219e516551e0060441fbd49623 (patch) | |
tree | e38356ed810e5e1b83c96971f3b202879180b7ec /dev-java/java-config/files | |
parent | ia64/x86 stable wrt #208956 (diff) | |
download | gentoo-2-210830e11267f6219e516551e0060441fbd49623.tar.gz gentoo-2-210830e11267f6219e516551e0060441fbd49623.tar.bz2 gentoo-2-210830e11267f6219e516551e0060441fbd49623.zip |
Remove some cruft.
(Portage version: 2.2_rc20/cvs/Linux 2.6.28-gentoo-perfctr x86_64)
Diffstat (limited to 'dev-java/java-config/files')
-rw-r--r-- | dev-java/java-config/files/java-config-2.0.33-r1.patch | 126 | ||||
-rw-r--r-- | dev-java/java-config/files/java-config-2.1.2-r1.patch | 12 |
2 files changed, 0 insertions, 138 deletions
diff --git a/dev-java/java-config/files/java-config-2.0.33-r1.patch b/dev-java/java-config/files/java-config-2.0.33-r1.patch deleted file mode 100644 index 9b49cd53f55e..000000000000 --- a/dev-java/java-config/files/java-config-2.0.33-r1.patch +++ /dev/null @@ -1,126 +0,0 @@ -diff -ru --exclude .svn tags/2.0.33/src/gjl trunk/src/gjl ---- tags/2.0.33/src/gjl 2007-05-26 11:10:15.000000000 +0200 -+++ trunk/src/gjl 2007-05-28 13:59:52.000000000 +0200 -@@ -34,7 +34,7 @@ - pkg = unresolved.pop() - resolved.add(pkg) - # dep is in the form of (jar, pkg) -- for dep in pkg.deps(): -+ for dep in manager.get_pkg_deps(pkg): - dep_pkg = dep[-1] - p = manager.get_package(dep_pkg) - if p is None: -diff -ru --exclude .svn tags/2.0.33/src/java_config/EnvironmentManager.py trunk/src/java_config/EnvironmentManager.py ---- tags/2.0.33/src/java_config/EnvironmentManager.py 2007-05-26 11:10:15.000000000 +0200 -+++ trunk/src/java_config/EnvironmentManager.py 2007-05-28 11:40:03.000000000 +0200 -@@ -263,6 +263,19 @@ - def build_classpath(self, pkgs): - return self.build_path(pkgs, "CLASSPATH") - -+ def get_pkg_deps(self, pkg): -+ """ -+ Returns list of package's deps and optional deps. -+ Filters out optional deps that are not present. -+ """ -+ deps = pkg.deps(); -+ for opt_dep in pkg.opt_deps(): -+ p = self.get_package(opt_dep[-1]) -+ if p: -+ deps.append(opt_dep) -+ -+ return deps -+ - def add_dep_classpath(self, pkg, dep, classpath): - pkg_cp = pkg.classpath() - if pkg_cp: -@@ -295,7 +308,7 @@ - lpath = pkg.query(query) - self.add_path_elements(lpath, path) - -- for dep in pkg.deps(): -+ for dep in self.get_pkg_deps(pkg): - p = self.get_package(dep[-1]) - - if p: -@@ -344,7 +357,7 @@ - - self.add_pkg_env_vars(pkg, env) - -- for dep in pkg.deps(): -+ for dep in self.get_pkg_deps(pkg): - p = self.get_package(dep[-1]) - - if p: -diff -ru --exclude .svn tags/2.0.33/src/java_config/Package.py trunk/src/java_config/Package.py ---- tags/2.0.33/src/java_config/Package.py 2007-05-26 11:10:15.000000000 +0200 -+++ trunk/src/java_config/Package.py 2007-05-28 11:36:50.000000000 +0200 -@@ -55,11 +55,13 @@ - """ - Return all packages this package depends on - """ -- depstr = self.query("DEPEND") -- if depstr: -- return [dep.split("@") for dep in depstr.split(":")] -- else: -- return [] -+ return self.__get_deps("DEPEND") -+ -+ def opt_deps(self): -+ """ -+ Return all packages this package optionally depends on -+ """ -+ return self.__get_deps("OPTIONAL_DEPEND") - - def provides(self): - """ -@@ -69,5 +71,18 @@ - if pv: - return pv.split(" ") - return [] -+ -+ def __get_deps(self, query): -+ """ -+ Internal function to get package's (optional) dependencies; -+ @param query: variable to read from package.env -+ """ -+ depstr = self.query(query) -+ if depstr: -+ return [dep.split("@") for dep in depstr.split(":")] -+ else: -+ return [] -+ -+ - - # vim:set expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap: -diff -ru --exclude .svn tags/2.0.33/src/java_config/VersionManager.py trunk/src/java_config/VersionManager.py ---- tags/2.0.33/src/java_config/VersionManager.py 2007-05-26 11:10:15.000000000 +0200 -+++ trunk/src/java_config/VersionManager.py 2007-05-27 17:43:01.000000000 +0200 -@@ -127,6 +127,7 @@ - - prefs = self.get_prefs() - -+ # first try to find vm based on preferences - low = self.get_lowest(atoms) # Lowest vm version we can use - for atom in matched_atoms: - for pref in prefs: -@@ -143,12 +144,14 @@ - else: - return gvm # use it! - -- low = self.get_lowest_atom(matched_atoms) -- vm = self.find_vm("", low) -- if vm: -- return vm -- else: -- raise Exception("Couldn't find suitable VM. Possible invalid dependency string.") -+ # no match in preferences, find anything we have -+ for atom in matched_atoms: -+ vm = self.find_vm("", atom) -+ if vm: -+ return vm -+ -+ # nothing found -+ raise Exception("Couldn't find suitable VM. Possible invalid dependency string.") - - def find_vm(self, vm, atom): - vm_list = EnvironmentManager().find_vm(vm) diff --git a/dev-java/java-config/files/java-config-2.1.2-r1.patch b/dev-java/java-config/files/java-config-2.1.2-r1.patch deleted file mode 100644 index 4c644c26d182..000000000000 --- a/dev-java/java-config/files/java-config-2.1.2-r1.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- tags/2.1.2/src/java_config_2/EnvironmentManager.py 2007-10-14 16:00:23.000000000 +1300 -+++ src/java_config_2/EnvironmentManager.py 2007-10-14 20:22:03.000000000 +1300 -@@ -36,8 +36,7 @@ - self.load_active_vm() - except InvalidVMError: - pass -- finally: -- pass -+ pass - - def __call__(self): - return self |