[PATCH db-tools 1/3] osinfo-db-export: remove '-' in automatic version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Replace automatic version "2016-07-18" with "20160708" since
"-" is not a valid character in version numbers for RPM and
dates sort correctly without "-" being needed.

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---
 tools/osinfo-db-export.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/osinfo-db-export.c b/tools/osinfo-db-export.c
index d35da6c..19d5ae6 100644
--- a/tools/osinfo-db-export.c
+++ b/tools/osinfo-db-export.c
@@ -341,7 +341,7 @@ static gchar *osinfo_db_export_prefix(const gchar *version)
         GDateTime *now = g_date_time_new_now(tz);
         gchar *ret;
 
-        ret = g_strdup_printf("osinfo-db-%04d-%02d-%02d",
+        ret = g_strdup_printf("osinfo-db-%04d%02d%02d",
                               g_date_time_get_year(now),
                               g_date_time_get_month(now),
                               g_date_time_get_day_of_month(now));
@@ -522,7 +522,7 @@ in a chroot environment or equivalent.
 
 Set the version string for the files in the archive to
 B<VERSION>. If this argument is not given, the version
-will be set to the current date in the format B<YYYY-MM-DD>.
+will be set to the current date in the format B<YYYYMMDD>.
 
 =item B<-v>, B<--verbose>
 
-- 
2.7.4

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux