summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/opk.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/opk.c b/src/opk.c
index 1df8832..b22938c 100644
--- a/src/opk.c
+++ b/src/opk.c
@@ -73,7 +73,11 @@ _opkg_opk_opk_add_seek_name(struct _opkg_opk_opk_seek_name **names,
if (seek_name == NULL) {
return OPKG_OPK_ERROR;
}
- seek_name->name = name;
+ if (name[0] == '.' && name[1] == '/') {
+ seek_name->name = name + 2;
+ } else {
+ seek_name->name = name;
+ }
seek_name->found = 0;
seek_name->next = *names;