aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 1f35d64..081671a 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -906,6 +906,7 @@ update_provides(URPM__Package pkg, HV *provides) {
s = ps + 1; ps = strchr(s, '@');
}
if (s[0] == '/') {
+ es = strchr(s, '['); if (!es) es = strchr(s, ' ');
(void)hv_fetch(provides, s, es != NULL ? es-s : (signed)strlen(s), 1);
}
}