Similarly to what's been done for the plain format, let's also print
os variants' information when using --format=env.
Signed-off-by: Fabiano Fidêncio
---
tools/osinfo-detect.c | 47 ++-
1 file changed, 37 insertions(+), 10 deletions(-)
diff --git
On Fri, Apr 12, 2019 at 10:19:51AM +0200, Fabiano Fidêncio wrote:
> This series makes osinfo-detect to behave in the very same way for both
> medias and trees when those have a variant set.
>
> With the patches the tree detection of a Fedora Server tree will look
> like:
> fidencio@laerte
On Fri, Apr 12, 2019 at 10:23 AM Daniel P. Berrangé wrote:
>
> On Fri, Apr 12, 2019 at 10:19:52AM +0200, Fabiano Fidêncio wrote:
> > When detecting a tree, let's also its OS.
>
> word missing ?
Fixed locally.
"When detecting a tree, let's also set its OS".
On Fri, Apr 12, 2019 at 10:26 AM Daniel P. Berrangé wrote:
>
> On Fri, Apr 12, 2019 at 10:19:54AM +0200, Fabiano Fidêncio wrote:
> > In the same way done for medias, make the tree detection aware of
> > os-variants.
> >
> > https://gitlab.com/libosinfo/libosinfo/issues/25
> >
> > Signed-off-by:
On Fri, Apr 12, 2019 at 10:19:54AM +0200, Fabiano Fidêncio wrote:
> In the same way done for medias, make the tree detection aware of
> os-variants.
>
> https://gitlab.com/libosinfo/libosinfo/issues/25
>
> Signed-off-by: Fabiano Fidêncio
> ---
> tools/osinfo-detect.c | 30
On Fri, Apr 12, 2019 at 10:19:52AM +0200, Fabiano Fidêncio wrote:
> When detecting a tree, let's also its OS.
word missing ?
>
> https://gitlab.com/libosinfo/libosinfo/issues/25
>
> Signed-off-by: Fabiano Fidêncio
> ---
> osinfo/osinfo_db.c | 4 +++-
>
In the same way done for medias, make the tree detection aware of
os-variants.
https://gitlab.com/libosinfo/libosinfo/issues/25
Signed-off-by: Fabiano Fidêncio
---
tools/osinfo-detect.c | 30 +-
1 file changed, 29 insertions(+), 1 deletion(-)
diff --git
This series makes osinfo-detect to behave in the very same way for both
medias and trees when those have a variant set.
With the patches the tree detection of a Fedora Server tree will look
like:
fidencio@laerte ~/src/upstream/libosinfo $ ./tools/osinfo-detect --type=tree
When detecting a tree, let's also its OS.
https://gitlab.com/libosinfo/libosinfo/issues/25
Signed-off-by: Fabiano Fidêncio
---
osinfo/osinfo_db.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/osinfo/osinfo_db.c b/osinfo/osinfo_db.c
index 1089644..b7da2b7 100644
---
When getting the os variant of media, image, or tree, let's ensure their
OS is not NULL* before calling osinfo_os_get_variant_list(). In case
it's NULL, let's just return NULL.
*: having a media, image, or tree with no OS set is a common case when
the user has been creating it manually.
10 matches
Mail list logo