summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2019-06-09 14:45:06 -0400
committerJason Woodward2019-06-09 14:45:31 -0400
commitc70de610a267eab9068ca2fddd320cb399227d7e (patch)
tree1f2fc08d48c054d3d57767db5f6a463d98e709de
parenteb4f054ec4ad302062080d738300371374399320 (diff)
downloadslapt-src-c70de610a267eab9068ca2fddd320cb399227d7e.tar.gz
fix for dependency ordering regression
-rw-r--r--ChangeLog3
-rw-r--r--src/source.c9
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 0763ca0..6cc9579 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
-0.3.3 Mar 03, 2019
+0.3.3 Jun 08, 2019
+ * fix for dependency ordering regression
* use %m and no -pedantic for c99 sscanf
* build fixes
* tx pull
diff --git a/src/source.c b/src/source.c
index 76c1aea..6ac47ce 100644
--- a/src/source.c
+++ b/src/source.c
@@ -979,15 +979,20 @@ slapt_src_slackbuild_list *slapt_src_names_to_slackbuilds(
slapt_free_pkg_err_list(errors);
for (d = 0; d < deps->count; d++) {
- if (_slapt_src_search_slackbuild_cache_linear_by_name(sbs, deps->slackbuilds[d]->name) == false)
+ if (strcmp(sb->name, deps->slackbuilds[d]->name) == 0) {
+ continue;
+ }
+ if (_slapt_src_search_slackbuild_cache_linear_by_name(sbs, deps->slackbuilds[d]->name) == false) {
slapt_src_slackbuild_list_add(sbs, deps->slackbuilds[d]);
+ }
}
slapt_src_slackbuild_list_free(deps);
}
- if (_slapt_src_search_slackbuild_cache_linear_by_name(sbs, sb->name) == false)
+ if (_slapt_src_search_slackbuild_cache_linear_by_name(sbs, sb->name) == false) {
slapt_src_slackbuild_list_add(sbs, sb);
+ }
}
}