[gnome-software] odrs: Remove the '+dfsg' suffix from Debian versions
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] odrs: Remove the '+dfsg' suffix from Debian versions
- Date: Sat, 16 Jul 2016 14:07:07 +0000 (UTC)
commit 2bfc3ecd1deea80529716b5501b0679240f3a558
Author: Richard Hughes <richard hughsie com>
Date: Sat Jul 16 15:06:32 2016 +0100
odrs: Remove the '+dfsg' suffix from Debian versions
src/plugins/gs-plugin-odrs.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-odrs.c b/src/plugins/gs-plugin-odrs.c
index 18efe0d..9c67bc6 100644
--- a/src/plugins/gs-plugin-odrs.c
+++ b/src/plugins/gs-plugin-odrs.c
@@ -682,6 +682,12 @@ gs_plugin_odrs_sanitize_version (const gchar *version)
/* remove release */
tmp = g_strdup (version);
g_strdelimit (tmp, "-", '\0');
+
+ /* remove '+dfsg' suffix */
+ str = g_strstr_len (tmp, -1, "+dfsg");
+ if (str != NULL)
+ *str = '\0';
+
return tmp;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]