From c2134fde2be179c490b33765fe5504be96291b95 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Thu, 17 Oct 2013 23:38:58 -0400 Subject: 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 Signed-off-by: Allan McRae --- test/pacman/tests/sync012.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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") -- cgit v1.2.3-70-g09d2