diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2013-10-17 23:38:58 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-10-31 16:20:02 +1000 |
commit | c2134fde2be179c490b33765fe5504be96291b95 (patch) | |
tree | 52c3e7b6c813591ce1f71b2ad5161e57b142ed71 /test | |
parent | 2194eddf30bea718c2b5fd6b86d2a626783fc901 (diff) | |
download | pacman-c2134fde2be179c490b33765fe5504be96291b95.tar.xz |
sortbydeps: include local pkgs in dep graph
Detecting indirect dependencies by traversing a package's entire
dependency tree is prohibitively slow for larger transactions. Instead
add local packages to the dependency graph. This additionally requires
delaying dependency ordering for sync operations so that removed
packages may be excluded from dependency detection.
tests/sync012.py was also updated to ensure that the dependency cycle
was actually detected.
Fixes FS#37380
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/pacman/tests/sync012.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/pacman/tests/sync012.py b/test/pacman/tests/sync012.py index 3aaba376..441e5d5e 100644 --- a/test/pacman/tests/sync012.py +++ b/test/pacman/tests/sync012.py @@ -18,3 +18,5 @@ self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_EXIST=pkg1") self.addrule("PKG_EXIST=pkg2") self.addrule("PKG_EXIST=pkg3") +self.addrule("PACMAN_OUTPUT=dependency cycle detected") +self.addrule("PACMAN_OUTPUT=pkg3 will be installed before its pkg1 dependency") |