Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/deps.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/deps.c')
-rw-r--r--lib/libalpm/deps.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index 43aa6407..cb53d41b 100644
--- a/lib/libalpm/deps.c
+++ b/lib/libalpm/deps.c
@@ -119,6 +119,10 @@ pmlist_t *_alpm_sortbydeps(pmlist_t *targets, int mode)
while(change) {
pmlist_t *tmptargs = NULL;
change = 0;
+ /* TODO only use of a math.h function in entire libalpm,
+ * can we get rid of it? Former code line:
+ *if(numscans > numtargs) {
+ */
if(numscans > sqrt(numtargs)) {
_alpm_log(PM_LOG_DEBUG, _("possible dependency cycle detected"));
continue;