summaryrefslogtreecommitdiff
path: root/sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys.c')
-rw-r--r--sys.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys.c b/sys.c
index fecf66c..69daa1b 100644
--- a/sys.c
+++ b/sys.c
@@ -228,6 +228,18 @@ procstr:
continue;
}
+ /* If there is ABIVersion, remove that suffix */
+ if (!strcmp(var, "ABIVersion:")) {
+ if (strlen(pkg) <= strlen(p1))
+ continue;
+ tmp = &pkg[strlen(pkg) - strlen(p1)];
+ if (strncmp(p1, tmp, strlen(p1)))
+ continue;
+
+ *tmp = '\0';
+ continue;
+ }
+
if (!strcmp(var, "Version:")) {
strncpy(ver, p1, sizeof(ver));
continue;