packit / dist-git-to-source-git

Converting dist-git to source-git
MIT License
4 stars 9 forks source link

copy only sources defined in specfile #44

Closed dhodovsk closed 4 years ago

softwarefactory-project-zuul[bot] commented 4 years ago

Build failed.

softwarefactory-project-zuul[bot] commented 4 years ago

Build failed.

softwarefactory-project-zuul[bot] commented 4 years ago

Build failed.

softwarefactory-project-zuul[bot] commented 4 years ago

Build succeeded.

TomasTomecek commented 4 years ago

I just discovered one issue: rebase-helper.get_source returns also the tarball:

 " using a temp directory.".format(parent))
> /usr/local/lib/python3.6/site-packages/dist2src/core.py(364)copy_all_sources()
    363         import ipdb; ipdb.set_trace()
--> 364         for file_ in self.dist_git_spec.get_sources():
    365             file_dest = sg_path / Path(file_).name

ipdb> self.dist_git_spec.get_sources()
['/d/dnf/SOURCES/dnf-4.2.23.tar.gz']

I am debating whether this is a problem or not.

But since we are not interacting with lookaside cache in source-git, I'd say this is a good thing that we store the tarball alongside.