summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2011-10-08 01:14:19 +0000
committerJason Woodward2011-10-08 01:15:54 +0000
commit51af269b85494de3dd0aac0655e70a6c6f2243c2 (patch)
tree0a9d93c46534b40321e8fb01ab8450a4be22b958
parent43b447b52e576a5d33cd34696c56696e05392410 (diff)
downloadslapt-get-51af269b85494de3dd0aac0655e70a6c6f2243c2.tar.gz
Do not return 1 from slapt_get_pkg_dependencies if no dependency information
This should return 0 as the contract/comment says.
-rw-r--r--ChangeLog3
-rw-r--r--src/package.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3381286..aa8b94b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
-0.10.2l Oct 07, 2011
+0.10.2l Oct 08, 2011
+ * Do not return 1 from slapt_get_pkg_dependencies if no dependency information
* fixed reverse dep lookup to make sure the match is exact
* only create directory structure if chdir succeeded
* remove inclusion of deprecated curl/types.h
diff --git a/src/package.c b/src/package.c
index d5050ca..9e67592 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1347,7 +1347,7 @@ int slapt_get_pkg_dependencies(const slapt_rc_config *global_config,
strcmp(pkg->required," ") == 0 ||
strcmp(pkg->required," ") == 0
)
- return 1;
+ return 0;
if (deps == NULL)
deps = slapt_init_pkg_list();