[gnome-software/gnome-3-20] odrs: Remove the '+dfsg' suffix from Debian versions
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-20] odrs: Remove the '+dfsg' suffix from Debian versions
- Date: Mon, 18 Jul 2016 07:27:08 +0000 (UTC)
commit 4086b78b5a1272a2b6268165270864a82eba562f
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 2707039..19b336e 100644
--- a/src/plugins/gs-plugin-odrs.c
+++ b/src/plugins/gs-plugin-odrs.c
@@ -717,6 +717,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]