Currently if no filename is given to the export command
the archive will be written to stdout, which is less than
helpful as default behaviour. Change it to generate a
suitable default filename. Export to stdout can still be
requested explicitly by giving a filename of '-'.
Signed-off-by: Daniel P
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
---
tools/osinfo-db-export.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -
Just a few small changes I made while testing this with the
new osinfo-db split database.
Daniel P. Berrange (3):
osinfo-db-export: remove '-' in automatic version
osinfo-db-export: embed a file called "VERSION"
osinfo-db-export: generate filename if none is given
tools/osinfo-db-export.c
Although the version can be inferred from the archive
filename, once extracted this info is not available.
Populate the archive with a file called VERSION which
will be extracted into the root of the DB directory.
Signed-off-by: Daniel P. Berrange
---
tools/osinfo-db-export.c | 88 ++
The initial repository state was cloned from libosinfo
GIT at revision:
commit dd68d8ccb0abb9cab7324da1b3a706dbf158870b
Author: Daniel P. Berrange
Date: Mon Jul 18 11:18:24 2016 +0100
Fix mingw DLL version after bump to 1.0.0
It was initialized using the following commands:
$ git
This series of 1 patch introduces the new osinfo-db GIT
repo for the libosinfo database. See the patch commit
message for details of how I created the repo while keeping
existing GIT history intact.
The new repo is visible here:
https://gitlab.com/libosinfo/osinfo-db
Or clonable via ssh with