summaryrefslogtreecommitdiff
path: root/src/selection.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-04-17 15:39:50 +0200
committerMichael Schroeder <mls@suse.de>2013-04-17 15:39:50 +0200
commit1849f54ad9145de0ca41ff003e42a38afd989d5a (patch)
tree451599b65cd29755a65bbe3f38c458d7e698ccbb /src/selection.c
parent68a1076f81fee768d3a48767cff1d98180a029aa (diff)
downloadlibsolv-1849f54ad9145de0ca41ff003e42a38afd989d5a.tar.gz
libsolv-1849f54ad9145de0ca41ff003e42a38afd989d5a.tar.bz2
libsolv-1849f54ad9145de0ca41ff003e42a38afd989d5a.zip
split arch from the right for debian/haiku (thanks Ingo!)
Diffstat (limited to 'src/selection.c')
-rw-r--r--src/selection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selection.c b/src/selection.c
index 8fc1998..2b9d434 100644
--- a/src/selection.c
+++ b/src/selection.c
@@ -686,7 +686,7 @@ selection_canon(Pool *pool, Queue *selection, const char *name, int flags)
return 0;
}
/* is there a vaild arch? */
- if ((r2 = strchr(r, '_')) != 0 && r[1] && (archid = str2archid(pool, r + 1)) != 0)
+ if ((r2 = strrchr(r, '_')) != 0 && r[1] && (archid = str2archid(pool, r + 1)) != 0)
{
*r2 = 0; /* split off */
selection_filter_rel(pool, selection, REL_ARCH, archid);
@@ -709,7 +709,7 @@ selection_canon(Pool *pool, Queue *selection, const char *name, int flags)
return 0;
}
/* is there a vaild arch? */
- if ((r2 = strchr(r, '-')) != 0 && r[1] && (archid = str2archid(pool, r + 1)) != 0)
+ if ((r2 = strrchr(r, '-')) != 0 && r[1] && (archid = str2archid(pool, r + 1)) != 0)
{
*r2 = 0; /* split off */
selection_filter_rel(pool, selection, REL_ARCH, archid);