[Libosinfo] [osinfo-db PATCH 16/16] install-script, rhel, centos: Merge centos & rhel scripts

2019-06-18 Thread Fabiano Fidêncio
Splitting centos & rhel script, done in 538ca137c, was not exactly the best idea as it increased the maintenance for pretty much no gain. With that in mind, let's merge back the scripts keeping the centos specific bits conditionally added as part of the templates. Signed-off-by: Fabiano Fidê

[Libosinfo] [osinfo-db PATCH 08/16] install-script, opensuse: Add target-disk template

2019-06-18 Thread Fabiano Fidêncio
Let's add a target-disk template so we actually can use what apps set as target-disk, instead of using a hardcoded path to /dev/vda. With this change we keep not requiring the apps to set this value. Signed-off-by: Fabiano Fidêncio --- .../opensuse-autoyast-desktop.xml.in | 21

[Libosinfo] [osinfo-db PATCH 07/16] install-script, opensuse: Remove extra empty space

2019-06-18 Thread Fabiano Fidêncio
repo-oss template has been generating an empy extra space before the URL it returns, which may break unattended installations. Signed-off-by: Fabiano Fidêncio --- .../install-script/opensuse.org/opensuse-autoyast-desktop.xml.in | 1 - data/install-script/opensuse.org/opensuse-autoyast

[Libosinfo] [osinfo-db PATCH 10/16] install-script, rhel: Only use virtio for 5.6+

2019-06-18 Thread Fabiano Fidêncio
-by: Fabiano Fidêncio --- data/install-script/redhat.com/rhel-kickstart-desktop.xml.in | 2 +- data/install-script/redhat.com/rhel-kickstart-jeos.xml.in| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in b/data/install

[Libosinfo] [osinfo-db PATCH 13/16] install-script, centos: Only use virtio for 5.6+

2019-06-18 Thread Fabiano Fidêncio
Although we only support unattended installations for CentOS 6 (or newer), let's fix the condition for using virtio as the target disk. Unlike suggested in the previous condition, virtio-block has only been added to CentOS 5.6 (and not 5.0). Signed-off-by: Fabiano Fidêncio --- data/install

[Libosinfo] [osinfo-db PATCH 14/16] install-script, centos: Improve script-disk template

2019-06-18 Thread Fabiano Fidêncio
Let's improve the script disk template so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../centos.org/centos-kickstart-desktop.xml.in | 14 -- .../centos.org/centos-kickstart-jeos.xml.in

[Libosinfo] [osinfo-db PATCH 04/16] install-script, silverblue: Add script-disk template

2019-06-18 Thread Fabiano Fidêncio
Let's add the script disk template so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../silverblue-kickstart-desktop.xml.in | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff

[Libosinfo] [osinfo-db PATCH 05/16] install-script, silverblue: Add target-disk template

2019-06-18 Thread Fabiano Fidêncio
Let's add a target-disk template so we actually can use what apps set as target-disk, instead of using a hardcoded path to /dev/vda. With this change we keep not requiring the apps to set this value. Signed-off-by: Fabiano Fidêncio --- .../silverblue-kickstart-desktop.xml.in | 15

[Libosinfo] [osinfo-db PATCH 11/16] install-script, rhel: Improve script-disk template

2019-06-18 Thread Fabiano Fidêncio
Let's improve the script disk template so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../redhat.com/rhel-kickstart-desktop.xml.in | 14 -- .../redhat.com/rhel-kickstart-jeos.xml.in

[Libosinfo] [osinfo-db PATCH 03/16] install-script, fedora, desktop: Add avatar-disk template

2019-06-18 Thread Fabiano Fidêncio
Let's add the avatar disk template, which considers that the avatar file is stored together with the install scripts files, so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../fedora-kickstart-desktop.xml.in

[Libosinfo] [osinfo-db PATCH 12/16] install-script, rhel, desktop: Add avatar-disk template

2019-06-18 Thread Fabiano Fidêncio
Let's add the avatar disk template, which considers that the avatar file is stored together with the install scripts files, so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../redhat.com/rhel-kickstart

[Libosinfo] [osinfo-db PATCH 01/16] install-script, fedora, desktop: Drop unused bits

2019-06-18 Thread Fabiano Fidêncio
autopart usage has been introduced in commit 81beb9970 and, since then, there's no need keep the rootfs and bootfs templates. Signed-off-by: Fabiano Fidêncio --- .../fedora-kickstart-desktop.xml.in | 22 --- 1 file changed, 22 deletions(-) diff --git a/data/install

[Libosinfo] [osinfo-db PATCH 15/16] install-script, centos, desktop: Add avatar-disk template

2019-06-18 Thread Fabiano Fidêncio
Let's add the avatar disk template, which considers that the avatar file is stored together with the install scripts files, so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../centos.org/centos-kickstart

[Libosinfo] [osinfo-db PATCH 02/16] install-script, fedora: Improve script-disk template

2019-06-18 Thread Fabiano Fidêncio
Let's improve the script disk template so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../fedora-kickstart-desktop.xml.in | 17 +++-- .../fedora-kickstart-jeos.xml.in| 17

[Libosinfo] [osinfo-db PATCH 06/16] install-script, ubuntu: Improve target-disk template

2019-06-18 Thread Fabiano Fidêncio
Let's use virtio as target-disk in case a target-disk is not set by the apps. We can safely do this as we support unattended installation for Ubuntu since its 12.04 release and virtio support has been added on 9.04. Signed-off-by: Fabiano Fidêncio --- data/install-script/ubuntu.com/ubuntu

[Libosinfo] [osinfo-db PATCH 09/16] install-script, opensuse, desktop: Add avatar-disk template

2019-06-18 Thread Fabiano Fidêncio
Let's add the avatar disk template, which considers that the avatar file is stored together with the install scripts files, so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../opensuse.org/opensuse-autoyast

[Libosinfo] [osinfo-db PATCH] centos7: Rename from CentOS 7.0 to CentOS 7

2019-06-14 Thread Fabiano Fidêncio
libosinfo could just start using it without any issues. Together with this change, let's also change the name from CentOS 7.0 to CentOS 7 as it's the distro preferred way to advertise the system. Signed-off-by: Fabiano Fidêncio --- data/os/centos.org/centos-7.0.xml.in | 5 +++-- 1 file

[Libosinfo] [osinfo-db PATCH 08/15] install-script, opensuse, desktop: Add avatar-disk template

2019-06-13 Thread Fabiano Fidêncio
Let's add the avatar disk template, which considers that the avatar file is stored together with the install scripts files, so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../opensuse.org/opensuse-autoyast

[Libosinfo] [osinfo-db PATCH 10/15] install-script, rhel: Improve script-disk template

2019-06-13 Thread Fabiano Fidêncio
Let's improve the script disk template so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../redhat.com/rhel-kickstart-desktop.xml.in | 14 -- .../redhat.com/rhel-kickstart-jeos.xml.in

[Libosinfo] [osinfo-db PATCH 09/15] install-script, rhel: Only use virtio for 5.6+

2019-06-13 Thread Fabiano Fidêncio
-by: Fabiano Fidêncio --- data/install-script/redhat.com/rhel-kickstart-desktop.xml.in | 2 +- data/install-script/redhat.com/rhel-kickstart-jeos.xml.in| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/install-script/redhat.com/rhel-kickstart-desktop.xml.in b/data/install

[Libosinfo] [osinfo-db PATCH 13/15] install-script, centos: Improve script-disk template

2019-06-13 Thread Fabiano Fidêncio
Let's improve the script disk template so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../centos.org/centos-kickstart-desktop.xml.in | 14 -- .../centos.org/centos-kickstart-jeos.xml.in

[Libosinfo] [osinfo-db PATCH 03/15] install-script, silverblue: Add script-disk template

2019-06-13 Thread Fabiano Fidêncio
Let's add the script disk template so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../silverblue-kickstart-desktop.xml.in | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff

[Libosinfo] [osinfo-db PATCH 07/15] install-script, opensuse: Add target-disk template

2019-06-13 Thread Fabiano Fidêncio
Let's add a target-disk template so we actually can use what apps set as target-disk, instead of using a hardcoded path to /dev/vda. With this change we keep not requiring the apps to set this value. Signed-off-by: Fabiano Fidêncio --- .../opensuse-autoyast-desktop.xml.in | 21

[Libosinfo] [osinfo-db PATCH 01/15] install-script, fedora: Improve script-disk template

2019-06-13 Thread Fabiano Fidêncio
Let's improve the script disk template so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../fedora-kickstart-desktop.xml.in | 17 +++-- .../fedora-kickstart-jeos.xml.in| 17

[Libosinfo] [osinfo-db PATCH 02/15] install-script, fedora, desktop: Add avatar-disk template

2019-06-13 Thread Fabiano Fidêncio
Let's add the avatar disk template, which considers that the avatar file is stored together with the install scripts files, so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../fedora-kickstart-desktop.xml.in

[Libosinfo] [osinfo-db PATCH 05/15] install-script, ubuntu: Improve target-disk template

2019-06-13 Thread Fabiano Fidêncio
Let's use virtio as target-disk in case a target-disk is not set by the apps. We can safely do this as we support unattended installation for Ubuntu since its 12.04 release and virtio support has been added on 9.04. Signed-off-by: Fabiano Fidêncio --- data/install-script/ubuntu.com/ubuntu

[Libosinfo] [osinfo-db PATCH 04/15] install-script, silverblue: Add target-disk template

2019-06-13 Thread Fabiano Fidêncio
Let's add a target-disk template so we actually can use what apps set as target-disk, instead of using a hardcoded path to /dev/vda. With this change we keep not requiring the apps to set this value. Signed-off-by: Fabiano Fidêncio --- .../silverblue-kickstart-desktop.xml.in | 15

[Libosinfo] [osinfo-db PATCH 06/15] install-script, opensuse: Remove extra empty space

2019-06-13 Thread Fabiano Fidêncio
repo-oss template has been generating an empy extra space before the URL it returns, which may break unattended installations. Signed-off-by: Fabiano Fidêncio --- .../install-script/opensuse.org/opensuse-autoyast-desktop.xml.in | 1 - data/install-script/opensuse.org/opensuse-autoyast

[Libosinfo] [osinfo-db PATCH 11/15] install-script, rhel, desktop: Add avatar-disk template

2019-06-13 Thread Fabiano Fidêncio
Let's add the avatar disk template, which considers that the avatar file is stored together with the install scripts files, so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../redhat.com/rhel-kickstart

[Libosinfo] [osinfo-db PATCH 12/15] install-script, centos: Only use virtio for 5.6+

2019-06-13 Thread Fabiano Fidêncio
Although we only support unattended installations for CentOS 6 (or newer), let's fix the condition for using virtio as the target disk. Unlike suggested in the previous condition, virtio-block has only been added to CentOS 5.6 (and not 5.0). Signed-off-by: Fabiano Fidêncio --- data/install

[Libosinfo] [osinfo-db PATCH 14/15] install-script, centos, desktop: Add avatar-disk template

2019-06-13 Thread Fabiano Fidêncio
Let's add the avatar disk template, which considers that the avatar file is stored together with the install scripts files, so we don't actually require the apps to set it (but, if they do, the value set will be used). Signed-off-by: Fabiano Fidêncio --- .../centos.org/centos-kickstart

[Libosinfo] [osinfo-db PATCH 00/15] install-scripts improvements

2019-06-13 Thread Fabiano Fidêncio
can be removed from the apps dealing with unattended installations (mainly from GNOME Boxes). Fabiano Fidêncio (15): install-script,fedora: Improve script-disk template install-script,fedora,desktop: Add avatar-disk template install-script,silverblue: Add script-disk template install-script

[Libosinfo] [osinfo-db PATCH 15/15] install-script, rhel, centos: Merge centos & rhel scripts

2019-06-13 Thread Fabiano Fidêncio
Splitting centos & rhel script, done in 538ca137c, was not exactly the best idea as it increased the maintenance for pretty much no gain. With that in mind, let's merge back the scripts keeping the centos specific bits conditionally added as part of the templates. Signed-off-by: Fabiano Fidê

[Libosinfo] [osinfo-db PATCH] silverblue28: Add eol-date

2019-06-12 Thread Fabiano Fidêncio
Silverblue follows exactly the same cycle as Fedora, reaching its end of life at the same date. Signed-off-by: Fabiano Fidêncio --- data/os/fedoraproject.org/silverblue-28.xml.in | 1 + 1 file changed, 1 insertion(+) diff --git a/data/os/fedoraproject.org/silverblue-28.xml.in b/data/os

Re: [Libosinfo] unattended installation support

2019-06-10 Thread Fabiano Fidêncio
On Tue, 2019-06-04 at 10:38 -0400, Cole Robinson wrote: > On 6/4/19 3:30 AM, Fabiano Fidêncio wrote: > > People, > > > > libosinfo/osinfo-db claims to support unattended installations of > > various OSes and all the possible versions of each OS. However, > > t

Re: [Libosinfo] [osinfo-db PATCH 0/4] osinfo-db: Add firmware support to

2019-06-10 Thread Fabiano Fidêncio
On Mon, 2019-06-03 at 18:33 -0400, Cole Robinson wrote: > On 5/7/19 9:06 AM, Fabiano Fidêncio wrote: > > This patch set adds support to advertising the firmware types an OS > > supports and follows the same naming used by libvirt. > > > > For now, I've decided to n

[Libosinfo] [osinfo-db PATCH] install-script, fedora: Fix typo in the url-or-mirrorlist template

2019-06-06 Thread Fabiano Fidêncio
-off-by: Fabiano Fidêncio --- .../fedoraproject.org/fedora-kickstart-desktop.xml.in | 2 +- .../fedoraproject.org/fedora-kickstart-jeos.xml.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/install-script/fedoraproject.org/fedora-kickstart

[Libosinfo] [osinfo-db PATCH 2/5] install-script, windows, desktop: Don't harcode the script-disk value

2019-06-06 Thread Fabiano Fidêncio
There's already a template for getting the proper script-disk value, let's use it instead of hardcoding it to "A". Signed-off-by: Fabiano Fidêncio --- .../microsoft.com/windows-unattend-desktop.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/da

[Libosinfo] [osinfo-db PATCH 5/5] install-script, windows: cdrom is also a viable injection method

2019-06-06 Thread Fabiano Fidêncio
For scripts being used on Windows Vista+ the unattended installer can also be used via cdrom and not only via a floppy device. Signed-off-by: Fabiano Fidêncio --- .../microsoft.com/windows-cmd-desktop.xml.in | 7 +++ .../microsoft.com/windows-unattend-desktop.xml.in

[Libosinfo] [osinfo-db PATCH 3/5] install-script, windows, dekstop: Don't hardcode the target-disk value

2019-06-06 Thread Fabiano Fidêncio
There's already a template for getting the proper target-disk value, let's use it instead of hardcoding it to "C". Signed-off-by: Fabiano Fidêncio --- .../microsoft.com/windows-unattend-desktop.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/da

[Libosinfo] [osinfo-db PATCH 1/5] install-script, windows, desktop: Do not set user avatar for win8+

2019-06-06 Thread Fabiano Fidêncio
of libosinfo & consumers. Signed-off-by: Fabiano Fidêncio --- .../install-script/microsoft.com/windows-cmd-desktop.xml.in | 6 ++ 1 file changed, 6 insertions(+) diff --git a/data/install-script/microsoft.com/windows-cmd-desktop.xml.in b/data/install-script/microsoft.com/windows

[Libosinfo] [osinfo-db PATCH 0/5] Support cdrom as injection-method for Vista+

2019-06-06 Thread Fabiano Fidêncio
the complexity of their code. Fabiano Fidêncio (5): install-script,windows,desktop: Do not set user avatar for win8+ install-script,windows,desktop: Don't harcode the script-disk value install-script,windows,dekstop: Don't hardcode the target-disk value install-script,windows,desktop: Prevent infinite

[Libosinfo] [osinfo-db PATCH 4/5] install-script, windows, desktop: Prevent infinite loop during post-install

2019-06-06 Thread Fabiano Fidêncio
, let's add a condition to *not* call windows.cmd from windows.cmd file. Signed-off-by: Fabiano Fidêncio --- data/install-script/microsoft.com/windows-cmd-desktop.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/install-script/microsoft.com/windows-cmd-desktop.xml.in b

Re: [Libosinfo] [osinfo-db PATCH] install-script, windows: cdrom is also a viable injection method

2019-06-05 Thread Fabiano Fidêncio
On Wed, Jun 5, 2019 at 9:45 AM Fabiano Fidêncio wrote: > > For scripts being used on Windows Vista+ the unattended installer can > also be used via cdrom and not only via a floppy device. > > Signed-off-by: Fabiano Fidêncio Self-nack! I just found out we explicitl

[Libosinfo] [osinfo-db PATCH] install-script, windows: cdrom is also a viable injection method

2019-06-05 Thread Fabiano Fidêncio
For scripts being used on Windows Vista+ the unattended installer can also be used via cdrom and not only via a floppy device. Signed-off-by: Fabiano Fidêncio --- It's important to mention that this change is not going to break current consumers of those scripts. There are more changes to come

[Libosinfo] unattended installation support

2019-06-04 Thread Fabiano Fidêncio
upport Fedora29 and Fedora30); - Windows: Windows 7+ By taking this path we'll have an easier time to ensure that our scripts are working and also reduce the maintainability of those. Shall I go for this change? Best Regards, -- Fabiano Fidêncio ___ Lib

Re: [Libosinfo] [osinfo-db PATCH] drangonflybsd: Add 5.4.3

2019-06-03 Thread Fabiano Fidêncio
On Mon, May 27, 2019 at 10:59 AM Fabiano Fidêncio wrote: > > Signed-off-by: Fabiano Fidêncio > --- > .../dragonflybsd-5.4.3.xml.in | 23 +++ > .../dfly-x86_64-5.4.3_REL.iso.txt | 29 +++ > 2 files changed, 52 insertions

[Libosinfo] [osinfo-db PATCH 0/2] Fix dead URLs

2019-05-31 Thread Fabiano Fidêncio
These two patches have been pushed already. Fabiano Fidêncio (2): fedora28: Update URLs after EOL centos7: Comment out CentOS-7-x86_64-DVD.iso URL data/os/centos.org/centos-7.0.xml.in | 2 ++ data/os/fedoraproject.org/fedora-28.xml.in | 14 +++--- 2 files changed, 9

[Libosinfo] [osinfo-db PATCH 2/2] centos7: Comment out CentOS-7-x86_64-DVD.iso URL

2019-05-31 Thread Fabiano Fidêncio
CentOS servers have been under attack and they decided to forbid access to this ISO. Signed-off-by: Fabiano Fidêncio --- data/os/centos.org/centos-7.0.xml.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/os/centos.org/centos-7.0.xml.in b/data/os/centos.org/centos-7.0.xml.in index

[Libosinfo] [osinfo-db PATCH 1/2] fedora28: Update URLs after EOL

2019-05-31 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- data/os/fedoraproject.org/fedora-28.xml.in | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/data/os/fedoraproject.org/fedora-28.xml.in b/data/os/fedoraproject.org/fedora-28.xml.in index 339bb9f..095f4ee 100644 --- a/data/os

Re: [Libosinfo] [osinfo-db PATCH] fedora: fix EOL date of Fedora 27

2019-05-31 Thread Fabiano Fidêncio
0 > > ___ > Libosinfo mailing list > Libosinfo@redhat.com > https://www.redhat.com/mailman/listinfo/libosinfo Reviewed-by: Fabiano Fidêncio Thanks for the contribution! Best Regards, -- Fabiano Fidêncio ___ Libosinfo mailing list Libosinfo@redhat.com https://www.redhat.com/mailman/listinfo/libosinfo

Re: [Libosinfo] [osinfo-db PATCH] fedora: add EOL date of Fedora 28

2019-05-31 Thread Fabiano Fidêncio
> Libosinfo mailing list > Libosinfo@redhat.com > https://www.redhat.com/mailman/listinfo/libosinfo Reviewed-by: Fabiano Fidêncio Thanks for the contribution! Best Regards, -- Fabiano Fidêncio ___ Libosinfo mailing list Libosinfo@redhat.com https://www.redhat.com/mailman/listinfo/libosinfo

Re: [Libosinfo] [PATCH] android-x86: Update to stable release

2019-05-31 Thread Fabiano Fidêncio
54 > Joliet with UCS level 3 found > Rock Ridge signatures version 1 found > -- > 2.21.0 > > ___ > Libosinfo mailing list > Libosinfo@redhat.com > https://www.redhat.com/mailman/listinfo/libosinfo I'll do the change before pushing! Thanks for the contribution! Reviewed-by: Fabiano Fidêncio -- Fabiano Fidêncio ___ Libosinfo mailing list Libosinfo@redhat.com https://www.redhat.com/mailman/listinfo/libosinfo

[Libosinfo] [osinfo-db-tools PATCH] test_osinfo_db_path: Unset XDG_CONFIG_HOME envvar

2019-05-30 Thread Fabiano Fidêncio
Similarly to what's been done as part of 1df4c0dbede91, let's just unset XDG_CONFIG_HOME environment variable in our tests, in case those were externally set for some reason. https://gitlab.com/libosinfo/osinfo-db-tools/issues/3 Signed-off-by: Fabiano Fidêncio --- tests/test_osinfo_db_path.py

[Libosinfo] [osinfo-db PATCH 2/2] tests: Add test_related

2019-05-29 Thread Fabiano Fidêncio
test_related ensures that an OS entry is not inheriting from itself (or from another OS which would end up inheriting from itself), avoiding them to have an infinite loop on libosinfo side. Signed-off-by: Fabiano Fidêncio --- tests/test_related.py | 12 tests/util.py | 5

[Libosinfo] [osinfo-db PATCH 0/2] Fix infinite loop on libosinfo side & add tests to avoid this to happen again

2019-05-29 Thread Fabiano Fidêncio
This series fixes the infinite loop caused by a typo in openbsd-6.3 entry and also adds a test avoiding this issue to happen in the future. Fabiano Fidêncio (2): openbsd-6.3: Fix derives-from tests: Add test_related data/os/openbsd.org/openbsd-6.3.xml.in | 2 +- tests/test_related.py

[Libosinfo] [osinfo-db PATCH 1/2] openbsd-6.3: Fix derives-from

2019-05-29 Thread Fabiano Fidêncio
The OS derives from OpenBSD 6.2 and not 6.3. More than that, having a distro deriving from itself will cause an infinite loop on osinfo-db functions recurring on the derives-from field. Signed-off-by: Fabiano Fidêncio --- data/os/openbsd.org/openbsd-6.3.xml.in | 2 +- 1 file changed, 1

[Libosinfo] [osinfo-db PATCH 1/3] rhel-7.[2-6]: Anchor ppc64 arch for treeinfo

2019-05-29 Thread Fabiano Fidêncio
Otherwise ppc64 could also match ppc64le. Signed-off-by: Fabiano Fidêncio --- data/os/redhat.com/rhel-7.2.xml.in | 2 +- data/os/redhat.com/rhel-7.3.xml.in | 2 +- data/os/redhat.com/rhel-7.4.xml.in | 2 +- data/os/redhat.com/rhel-7.5.xml.in | 2 +- data/os/redhat.com/rhel-7.6.xml.in | 2 +- 5

[Libosinfo] [osinfo-db PATCH 0/3] Misc fixes for rhel-7 & 8 related to ppc64le

2019-05-29 Thread Fabiano Fidêncio
The series cover: - Anchoring ppc64 arch entries for treeinfo, so those do not match ppc64le; - Adding ppc64le resources (same as the ones for ppc64) for rhel-7; - Adjusting rhel-8.0 resources to use ppc64le as arch, instead of using ppc64 (as there are no ppc64 ISOs for rhel-8.0); Fabiano

[Libosinfo] [osinfo-db PATCH 3/3] rhel-8.0: Fix typo in resources' architecture name

2019-05-29 Thread Fabiano Fidêncio
rhel-8.0 doesn't have any ppc64 media/tree. The correct architecture name, matching with existent medias and trees for the os, is ppc64le. Signed-off-by: Fabiano Fidêncio --- data/os/redhat.com/rhel-8.0.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/os

[Libosinfo] [osinfo-db PATCH 2/3] rhel-7.[2-6]: Add ppc64le resources

2019-05-29 Thread Fabiano Fidêncio
Those are exactly the same as the ones used for ppc64. Signed-off-by: Fabiano Fidêncio --- data/os/redhat.com/rhel-7.2.xml.in | 15 +++ data/os/redhat.com/rhel-7.3.xml.in | 15 +++ data/os/redhat.com/rhel-7.4.xml.in | 15 +++ data/os/redhat.com/rhel-7.5

[Libosinfo] [osinfo-db PATCH] drangonflybsd: Add 5.4.3

2019-05-27 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- .../dragonflybsd-5.4.3.xml.in | 23 +++ .../dfly-x86_64-5.4.3_REL.iso.txt | 29 +++ 2 files changed, 52 insertions(+) create mode 100644 data/os/dragonflybsd.org/dragonflybsd-5.4.3.xml.in create mode

Re: [Libosinfo] [PATCH] opensuse: update openSUSE Leap 15.1 data after release

2019-05-27 Thread Fabiano Fidêncio
On Mon, May 27, 2019 at 10:23 AM Pino Toscano wrote: > > - remove the prerelease status > - add the release date > - add the URLs of the ISOs > - switch the tree URL to https > - update the isodata test data Reviewed-by

[Libosinfo] [osinfo-db PATCH] dragonflybsd-5.4.2: Remove dead links

2019-05-27 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- Pushed under test breakage rule --- data/os/dragonflybsd.org/dragonflybsd-5.4.2.xml.in | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/os/dragonflybsd.org/dragonflybsd-5.4.2.xml.in b/data/os/dragonflybsd.org/dragonflybsd-5.4.2

Re: [Libosinfo] [PATCH osinfo-db 0/2] Add suse linux enterprise version 12.4 to the database

2019-05-27 Thread Fabiano Fidêncio
+ > data/os/suse.com/sles-12.4.xml.in | 65 > +++ > 2 files changed, 103 insertions(+) > create mode 100644 data/os/suse.com/sled-12.4.xml.in > create mode 100644 data/os/suse.com/sles-12.4.xml.

[Libosinfo] [osinfo-db PATCH 0/2] Update sles/sled unknown entries

2019-05-24 Thread Fabiano Fidêncio
After the addition of sles/sled 12.4, let's update the unknown entries' regular expression to match 12.5+. *: https://www.redhat.com/archives/libosinfo/2019-May/msg00148.html Fabiano Fidêncio (2): sled-12-unknown: Update regex after 12.4 addition sles-12-unknown: Update regex after 12.4

[Libosinfo] [osinfo-db PATCH 2/2] sles-12-unknown: Update regex after 12.4 addition

2019-05-24 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- data/os/suse.com/sles-12-unknown.xml.in | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/os/suse.com/sles-12-unknown.xml.in b/data/os/suse.com/sles-12-unknown.xml.in index 0b69493..fe4b181 100644 --- a/data/os/suse.com/sles-12

[Libosinfo] [osinfo-db PATCH 1/2] sled-12-unknown: Update regex after 12.4 addition

2019-05-24 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- data/os/suse.com/sled-12-unknown.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/os/suse.com/sled-12-unknown.xml.in b/data/os/suse.com/sled-12-unknown.xml.in index d3fb3bc..9df7b18 100644 --- a/data/os/suse.com/sled-12

Re: [Libosinfo] [PATCH osinfo-db 0/2] Add suse linux enterprise version 12.4 to the database

2019-05-24 Thread Fabiano Fidêncio
em. Before pushing the patches, tho, I'll also propose an update to the unknown entries. Last but not least, would be really nice to have the test files (`isoinfo -d -i iso`) added to our osinfo-db tests. So, consider those two patches Reviewed-by: Fabiano Fidêncio and those will be pushed togeth

[Libosinfo] [osinfo-db-tools PATCH v2 0/1] Fix yet another coverity issue

2019-05-22 Thread Fabiano Fidêncio
This is another case of FORWARD_NULL, due to the possibility of calling unlink(NULL) in another piece of osinfo-db-import code; Fabiano Fidêncio (1): import: Don't call unlink(NULL) in _import_extract() tools/osinfo-db-import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0

[Libosinfo] [osinfo-db PATCH 1/2] rhel-8.0: Add codename (Ootpa)

2019-05-22 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- data/os/redhat.com/rhel-8.0.xml.in | 1 + 1 file changed, 1 insertion(+) diff --git a/data/os/redhat.com/rhel-8.0.xml.in b/data/os/redhat.com/rhel-8.0.xml.in index 2ba1ad1..157c498 100644 --- a/data/os/redhat.com/rhel-8.0.xml.in +++ b/data/os/redhat.com/rhel

[Libosinfo] [osinfo-db PATCH 0/2] Add RHEL 8's codename

2019-05-22 Thread Fabiano Fidêncio
rhel-8.0 entry didn't have any codename set and rhel-8-unknown has been using rhel-7's codename. Fabiano Fidêncio (2): rhel-8.0: Add codename (Ootpa) rhel-8-unknown: Fix codename data/os/redhat.com/rhel-8-unknown.xml.in | 2 +- data/os/redhat.com/rhel-8.0.xml.in | 1 + 2 files changed

[Libosinfo] [osinfo-db PATCH] tests, test_dates: Keep just one implementation of _parse_iso_date()

2019-05-22 Thread Fabiano Fidêncio
As suggested by Cole, let's keep just one implementation of _parse_iso_date() (the most compatible one) and avoid diverging over time. Signed-off-by: Fabiano Fidêncio --- tests/test_dates.py | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/test_dates.py b

[Libosinfo] Handling `http://` calls with sudo/su

2019-05-22 Thread Fabiano Fidêncio
of ideas on how to proceed, thus I'd be really happy to get some suggestions. Best Regards, -- Fabiano Fidêncio ___ Libosinfo mailing list Libosinfo@redhat.com https://www.redhat.com/mailman/listinfo/libosinfo

Re: [Libosinfo] [osinfo-db PATCH] tests: test_dates: work without datetime.date.fromisoformat()

2019-05-21 Thread Fabiano Fidêncio
On Tue, 2019-05-21 at 17:21 +0200, Pino Toscano wrote: > datetime.date.fromisoformat() was introduced in Python 3.7, so > provide > an alternative implementation for it with older Python versions. > > Fixes commit 5da3b8fdd836a55a58365718e93d0372fcc2bf0b. Reviewed-by: F

Re: [Libosinfo] [osinfo-db PATCH 2/2] tests: add a new test for dates

2019-05-21 Thread Fabiano Fidêncio
On Tue, 2019-05-21 at 15:34 +0200, Pino Toscano wrote: > On Tuesday, May 21, 2019 2:39:37 PM CEST Fabiano Fidêncio wrote: > > So, in the end, my suggestion is to add to this patches something > > like: > > ``` > > fidencio@laerte ~/src/upstream/osinfo-db $ git

Re: [Libosinfo] [osinfo-db PATCH 2/2] tests: add a new test for dates

2019-05-21 Thread Fabiano Fidêncio
On Tue, 2019-05-21 at 14:30 +0200, Fabiano Fidêncio wrote: > On Tue, 2019-05-21 at 14:01 +0200, Pino Toscano wrote: > > For each OS, check two things: > > - release-date/eol-date are actually valid dates; this is needed > > because > > the schema just specifies the

Re: [Libosinfo] [osinfo-db PATCH 1/2] tests: get the release/EOL dates

2019-05-21 Thread Fabiano Fidêncio
On Tue, 2019-05-21 at 14:30 +0200, Fabiano Fidêncio wrote: > On Tue, 2019-05-21 at 14:01 +0200, Pino Toscano wrote: > > --- > > tests/osinfo.py | 8 > > 1 file changed, 8 insertions(+) > > > > diff --git a/tests/osinfo.py b/tests/osinfo.py

Re: [Libosinfo] [osinfo-db PATCH 1/2] tests: get the release/EOL dates

2019-05-21 Thread Fabiano Fidêncio
On Tue, 2019-05-21 at 14:01 +0200, Pino Toscano wrote: > --- > tests/osinfo.py | 8 > 1 file changed, 8 insertions(+) > > diff --git a/tests/osinfo.py b/tests/osinfo.py > index 3585f44..20c1866 100644 > --- a/tests/osinfo.py > +++ b/tests/osinfo.py > @@ -137,6 +137,14 @@ class

Re: [Libosinfo] [osinfo-db PATCH 2/2] tests: add a new test for dates

2019-05-21 Thread Fabiano Fidêncio
On Tue, 2019-05-21 at 14:01 +0200, Pino Toscano wrote: > For each OS, check two things: > - release-date/eol-date are actually valid dates; this is needed > because > the schema just specifies the regex, and it cannot detect invalid > dates such as "2019-05-00" or 2019-05-40" > - if both

Re: [Libosinfo] [PATCH 0/3] Misc OpenBSD fixes

2019-05-21 Thread Fabiano Fidêncio
On Tue, 2019-05-21 at 13:26 +0200, Pino Toscano wrote: > *** LOOK, A BLURB HERE! *** > > Pino Toscano (3): > openbsd: add missing > openbsd: fill missing > openbsd: fix of 4.3 Reviewed-by: Fabiano Fidêncio I'll push those in a few, thanks for the contribut

[Libosinfo] [libosinfo PATCH 0/3] Fix issues found by coverity/clang

2019-05-21 Thread Fabiano Fidêncio
This series fixes 2 issues found by either coverity or clang. Together with the second fix, there's also a patch cleaning the code up a little bit. Fabiano Fidêncio (3): db: Avoid dereference of null pointer tree: Avoid use of memory after it's freed tree: Cleanup

[Libosinfo] [libosinfo PATCH 3/3] tree: Cleanup _create_from_location_async_helper()

2019-05-21 Thread Fabiano Fidêncio
There's no need to pass neither the URL nor the cancellable to this function as those can be taken directly from data. Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_tree.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/osinfo/osinfo_tree.c b

[Libosinfo] [libosinfo PATCH 2/3] tree: Avoid use of memory after it's freed

2019-05-21 Thread Fabiano Fidêncio
st caller of osinfo_tree_create_from_location_async_helper(), as its content is always going to be the same doesn't matter the treeinfo format to be used with. Signed-off-by: Fabiano Fidêncio --- osinfo/osinfo_tree.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/osinfo/osinfo_tree.c

[Libosinfo] [libosinfo PATCH 1/3] db: Avoid dereference of null pointer

2019-05-21 Thread Fabiano Fidêncio
-off-by: Fabiano Fidêncio --- osinfo/osinfo_db.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/osinfo/osinfo_db.c b/osinfo/osinfo_db.c index b7da2b7..c4cd1e4 100644 --- a/osinfo/osinfo_db.c +++ b/osinfo/osinfo_db.c @@ -790,6 +790,7 @@ static gboolean compare_tree

[Libosinfo] [osinfo-db-tools PATCH 3/3] validate: Don't leak "files"

2019-05-20 Thread Fabiano Fidêncio
Error: CLANG_WARNING: osinfo-db-tools-1.5.0/tools/osinfo-db-validate.c:319:9: warning: Potential leak of memory pointed to by 'files' #g_printerr("%s\n", error->message); #^ Signed-off-by: Fabiano Fidêncio --- tools/osinfo-db-validate.c | 1 + 1 file changed

[Libosinfo] [osinfo-db-tools PATCH 2/3] export: Remove unused variable

2019-05-20 Thread Fabiano Fidêncio
there is a missing assigment that would make "err" not remain constant. # 447| archive_write_free(arc); # 448| if (err) # 449|-> g_error_free(err); # 450| return ret; # 451| } Signed-off-by: Fabiano Fidêncio --- tools/osinfo-db-export.c | 3 --- 1 file changed, 3

[Libosinfo] [osinfo-db-tools PATCH 1/3] import: Don't call unlink(NULL)

2019-05-20 Thread Fabiano Fidêncio
unlink(*source_file); # 182| # 183| return ret; Error: CLANG_WARNING: osinfo-db-tools-1.5.0/tools/osinfo-db-import.c:181:9: warning: Null pointer passed as an argument to a 'nonnull' parameter #unlink(*source_file); #^ Signed-off-by: Fabiano Fidêncio --- tools/o

[Libosinfo] [osinfo-db-tools PATCH 0/3] Fix coverity/clang issues

2019-05-20 Thread Fabiano Fidêncio
pointed to by "files"; Fabiano Fidêncio (3): import: Don't call unlink(NULL) export: Remove unused variable validate: Don't leak "files" tools/osinfo-db-export.c | 3 --- tools/osinfo-db-import.c | 2 +- tools/osinfo-db-validate.c | 1 + 3 files changed, 2 insert

[Libosinfo] [osinfo-db PATCH] debian9: Update images URL

2019-05-20 Thread Fabiano Fidêncio
Let's use a URL where the file names are not changing on every new release. Signed-off-by: Fabiano Fidêncio --- Pushed under test breakage rule --- data/os/debian.org/debian-9.xml.in | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/os/debian.org/debian-9.xml.in

[Libosinfo] [osinfo-db-tools PATCH] import: Describe the needed env vars in order to run as root

2019-05-20 Thread Fabiano Fidêncio
GVfs requires the session bus i order to work properly, which means `DBUS_SESSION_BUS_ADDRESS` has to be defined in the environment. https://gitlab.com/libosinfo/libosinfo/issues/30 Signed-off-by: Fabiano Fidêncio --- tools/osinfo-db-import.c | 6 ++ 1 file changed, 6 insertions(+) diff

[Libosinfo] [libosinfo PATCH] osinfo-detect: Describe the needed env vars in order to run as root

2019-05-20 Thread Fabiano Fidêncio
GVfs requires the session bus i order to work properly, which means `DBUS_SESSION_BUS_ADDRESS` has to be defined in the environment. https://gitlab.com/libosinfo/libosinfo/issues/30 Signed-off-by: Fabiano Fidêncio --- tools/osinfo-detect.c | 6 ++ 1 file changed, 6 insertions(+) diff

[Libosinfo] ANNOUNCE: osinfo-db-tools 1.5.0 release

2019-05-09 Thread Fabiano Fidêncio
-export --help Thanks to everyone who contributed to this release Best Regards, Fabiano Fidêncio ___ Libosinfo mailing list Libosinfo@redhat.com https://www.redhat.com/mailman/listinfo/libosinfo

[Libosinfo] ANNOUNCE: libosinfo 1.5.0 release

2019-05-09 Thread Fabiano Fidêncio
uot;treeinfo" files - Explicitly set GVFS as a requirement in the project spec file - Move osinfo-db related tests to osinfo-db project Thanks to everyone who contributed to this release Best Regards, Fabiano Fidêncio ___ Libosinfo mailing list Libos

Re: [Libosinfo] [PATCH] rhel-8: Update releasedate

2019-05-08 Thread Fabiano Fidêncio
sinfo mailing list > Libosinfo@redhat.com > https://www.redhat.com/mailman/listinfo/libosinfo Reviewed-by: Fabiano Fidêncio -- Fabiano Fidêncio ___ Libosinfo mailing list Libosinfo@redhat.com https://www.redhat.com/mailman/listinfo/libosinfo

Re: [Libosinfo] how to submit patch

2019-05-08 Thread Fabiano Fidêncio
.berrange.com :| > |: https://entangle-photo.org-o-https://www.instagram.com/dberrange :| > > ___ > Libosinfo mailing list > Libosinfo@redhat.com > https://www.redhat.com/mailman/listinfo/libosinfo Best Regards, -- Fabiano Fidên

[Libosinfo] [libosinfo PATCH 5/7] os: Add support to Firmware

2019-05-07 Thread Fabiano Fidêncio
Let's add APIs for both adding a firmware to or retrieving the list of firmwares from an OS. Signed-off-by: Fabiano Fidêncio --- osinfo/libosinfo.syms | 3 ++ osinfo/osinfo_os.c| 96 +++ osinfo/osinfo_os.h| 3 ++ 3 files changed, 102 insertions

[Libosinfo] [libosinfo PATCH 3/7] firmwarelist: Add OsinfoFirmwareList

2019-05-07 Thread Fabiano Fidêncio
OsinfoFirmwareList has been created in order to represent a list of firmwares supported by an OS, as an OS may support various firmwares without any issue. Signed-off-by: Fabiano Fidêncio --- docs/reference/Libosinfo-docs.xml | 1 + osinfo/Makefile.am| 2 + osinfo

[Libosinfo] [libosinfo PATCH 0/7] libosinfo: Add firmware support

2019-05-07 Thread Fabiano Fidêncio
This series contains the machinery needed for loading, adding, and retrieving information about firmware support of a specific OS. The osinfo-db part of the series can be seen here: https://www.redhat.com/archives/libosinfo/2019-May/msg00071.html Fabiano Fidêncio (7): firmware: Add

[Libosinfo] [libosinfo PATCH 4/7] tests: Add test-firmwarelist

2019-05-07 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- .gitignore| 1 + tests/Makefile.am | 5 + tests/test-firmwarelist.c | 209 ++ 3 files changed, 215 insertions(+) create mode 100644 tests/test-firmwarelist.c diff --git a/.gitignore b/.gitignore

<    1   2   3   4   5   6   7   8   9   10   >