diff options
author | Andrew Fyfe <andrew@neptune-one.net> | 2007-06-29 10:41:48 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-07-10 10:15:24 -0400 |
commit | 5e68e9d4514b5e3e50b25e4242be0a4d27da4fdc (patch) | |
tree | 6b61df2634a80fe71844888b8bfb32e596dfcf85 /lib/libalpm/deps.c | |
parent | 7ec2e088ec4995e370d991507f7f22a5d3d9b27a (diff) |
Cleanup of pacman_deptest()
Clean up some left over code from
http://projects.archlinux.org/git/gitweb.cgi?p=pacman.git;a=commitdiff;h=7653bb93997f52848b54ab80868cd6da52808a75
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/deps.c')
-rw-r--r-- | lib/libalpm/deps.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 524136bd..794fbdbc 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -766,4 +766,16 @@ const char SYMEXPORT *alpm_dep_get_version(pmdepmissing_t *miss) return miss->depend.version; } + +const char SYMEXPORT *alpm_depend_get_name(pmdepend_t *dep) +{ + ALPM_LOG_FUNC; + + /* Sanity checks */ + ASSERT(handle != NULL, return(NULL)); + ASSERT(dep != NULL, return(NULL)); + + return dep->name; +} + /* vim: set ts=2 sw=2 noet: */ |