mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-15 22:05:02 -05:00
Remove REQUIREDBY checks from pactest
Remove any checks dealing with requiredby from pactest (but not actually from the pactests themselves). Of course, we should probably find a new way to check requiredby values of packages since there is no guarantee our code is working perfectly. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
7219326dd4
commit
ceb870655e
@ -189,8 +189,6 @@ class pmdb:
|
|||||||
pkg.depends = _getsection(fd)
|
pkg.depends = _getsection(fd)
|
||||||
elif line == "%OPTDEPENDS%":
|
elif line == "%OPTDEPENDS%":
|
||||||
pkg.optdepends = _getsection(fd)
|
pkg.optdepends = _getsection(fd)
|
||||||
elif line == "%REQUIREDBY%":
|
|
||||||
pkg.requiredby = _getsection(fd)
|
|
||||||
elif line == "%CONFLICTS%":
|
elif line == "%CONFLICTS%":
|
||||||
pkg.conflicts = _getsection(fd)
|
pkg.conflicts = _getsection(fd)
|
||||||
elif line == "%PROVIDES%":
|
elif line == "%PROVIDES%":
|
||||||
@ -288,16 +286,13 @@ class pmdb:
|
|||||||
pkg.mtime["files"] = getmtime(filename)
|
pkg.mtime["files"] = getmtime(filename)
|
||||||
|
|
||||||
# depends
|
# depends
|
||||||
# for local db entries: depends, requiredby, conflicts, provides
|
# for local db entries: depends, conflicts, provides
|
||||||
# for sync ones: depends, conflicts, provides
|
# for sync ones: depends, conflicts, provides
|
||||||
data = []
|
data = []
|
||||||
if pkg.depends:
|
if pkg.depends:
|
||||||
data.append(_mksection("DEPENDS", pkg.depends))
|
data.append(_mksection("DEPENDS", pkg.depends))
|
||||||
if pkg.optdepends:
|
if pkg.optdepends:
|
||||||
data.append(_mksection("OPTDEPENDS", pkg.optdepends))
|
data.append(_mksection("OPTDEPENDS", pkg.optdepends))
|
||||||
if self.treename == "local":
|
|
||||||
if pkg.requiredby:
|
|
||||||
data.append(_mksection("REQUIREDBY", pkg.requiredby))
|
|
||||||
if pkg.conflicts:
|
if pkg.conflicts:
|
||||||
data.append(_mksection("CONFLICTS", pkg.conflicts))
|
data.append(_mksection("CONFLICTS", pkg.conflicts))
|
||||||
if pkg.provides:
|
if pkg.provides:
|
||||||
|
@ -54,7 +54,6 @@ class pmpkg:
|
|||||||
# depends
|
# depends
|
||||||
self.depends = []
|
self.depends = []
|
||||||
self.optdepends = []
|
self.optdepends = []
|
||||||
self.requiredby = [] # local only
|
|
||||||
self.conflicts = []
|
self.conflicts = []
|
||||||
self.provides = []
|
self.provides = []
|
||||||
# files
|
# files
|
||||||
|
@ -86,9 +86,6 @@ class pmrule:
|
|||||||
elif case == "OPTDEPENDS":
|
elif case == "OPTDEPENDS":
|
||||||
if not value in newpkg.optdepends:
|
if not value in newpkg.optdepends:
|
||||||
success = 0
|
success = 0
|
||||||
elif case == "REQUIREDBY":
|
|
||||||
if not value in newpkg.requiredby:
|
|
||||||
success = 0
|
|
||||||
elif case == "REASON":
|
elif case == "REASON":
|
||||||
if newpkg.reason != int(value):
|
if newpkg.reason != int(value):
|
||||||
success = 0
|
success = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user