diff --git a/add-weak-dependencies.diff b/add-weak-dependencies.diff index c2b4700..ed282f9 100644 --- a/add-weak-dependencies.diff +++ b/add-weak-dependencies.diff @@ -69,7 +69,7 @@ Index: Pkg.py self._gather_aux(self.header, self._requires, rpm.RPMTAG_REQUIRENAME, -@@ -748,6 +776,28 @@ class Pkg: +@@ -748,6 +776,30 @@ class Pkg: rpm.RPMTAG_OBSOLETENAME, rpm.RPMTAG_OBSOLETEFLAGS, rpm.RPMTAG_OBSOLETEVERSION) @@ -94,17 +94,16 @@ Index: Pkg.py + rpm.RPMTAG_ENHANCESFLAGS, + rpm.RPMTAG_ENHANCESVERSION, + weak_only=True) ++ except: ++ pass + def scriptprog(self, which): """Get the specified script interpreter as a string. -@@ -761,6 +811,10 @@ class Pkg: +@@ -761,6 +813,7 @@ class Pkg: prog = " ".join(prog) return prog -+ except: -+ pass -+ + def getInstalledPkgs(name): """Get list of installed package objects by name."""