Skip to content

Fix source only tarballs unpacked with ldtarball#189

Merged
scaronni merged 1 commit intodkms-project:masterfrom
trixirt:fix-ldtarball
Dec 13, 2021
Merged

Fix source only tarballs unpacked with ldtarball#189
scaronni merged 1 commit intodkms-project:masterfrom
trixirt:fix-ldtarball

Conversation

@trixirt
Copy link

@trixirt trixirt commented Dec 11, 2021

When the tarball is created with

dkms mktarball -m dkms_test -v 1.0 --archive test.tar --source-only

The tarball has the form
dkms_main_tree/
dkms_source_tree/dkms.conf
dkms_source_tree/dkms_test.c
dkms_source_tree/Makefile

In the loop over the locations

for loc in dkms_source_tree dkms_binaries_only ''; do

The first loc is successful.
The second fails with
Error! No valid dkms.conf in dkms_source_tree or dkms_binaries_only.

A break is needed to catch the first success.

Suggested-by: Jan Edler jan.edler@indexengines.com
Signed-off-by: Tom Rix trix@redhat.com

When the tarball is created with

dkms mktarball -m dkms_test -v 1.0 --archive test.tar --source-only

The tarball has the form
dkms_main_tree/
dkms_source_tree/dkms.conf
dkms_source_tree/dkms_test.c
dkms_source_tree/Makefile

In the loop over the locations

    for loc in dkms_source_tree dkms_binaries_only ''; do

The first loc is successful.
The second fails with
Error! No valid dkms.conf in dkms_source_tree or dkms_binaries_only.

A break is needed to catch the first success.

Suggested-by: Jan Edler <jan.edler@indexengines.com>
Signed-off-by: Tom Rix <trix@redhat.com>
@scaronni scaronni merged commit edf6dae into dkms-project:master Dec 13, 2021
@trixirt trixirt deleted the fix-ldtarball branch December 13, 2021 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants