diff options
author | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:22:06 (EST) |
---|---|---|
committer | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2008-12-15 00:22:06 (EST) |
commit | 9e85c59c8df6dd151fce6238811844d8d66ea1c0 (patch) | |
tree | fda715b0c88fb02029a6a42ed1768511a0ae4a0f /libopkg/libopkg.c | |
parent | 38171e005d8bc496389bccdf8b9f8449b7b227a5 (diff) |
opkg: Consolidate error reporting from opkg_conf_init and ensure return value is
checked in the appropriate places.
opkg: Add a locking mechanism to prevent two instances of opkg being run at the
same time.
git-svn-id: http://opkg.googlecode.com/svn/trunk@130 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/libopkg.c')
-rw-r--r-- | libopkg/libopkg.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libopkg/libopkg.c b/libopkg/libopkg.c index dba1983..68da96d 100644 --- a/libopkg/libopkg.c +++ b/libopkg/libopkg.c @@ -271,6 +271,7 @@ opkg_packages_download (args_t * args, const char *name) err = opkg_conf_init (&opkg_conf, args); if (err) { + opkg_print_error_list (&opkg_conf); return err; } @@ -485,6 +486,7 @@ opkg_op (int argc, char *argv[]) err = opkg_conf_init (&opkg_conf, &args); if (err) { + opkg_print_error_list (&opkg_conf); return err; } |