Skip to content

Commit

Permalink
When copying archives, also copy any hidden files
Browse files Browse the repository at this point in the history
Previously copying archives would miss hidden files as '*' doesn't
match files with '.' prefix.

Signed-off-by: William Douglas <[email protected]>
  • Loading branch information
bryteise committed Feb 7, 2025
1 parent 94c6be0 commit 87c58eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autospec/specfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def write_prep(self):
if not archive_prefix:
# Make it up
archive_prefix = os.path.splitext(os.path.basename(archive))[0]
self._write_strip("cp -r %{{_builddir}}/{0}/* %{{_builddir}}/{1}/{2}"
self._write_strip("cp -r %{{_builddir}}/{0}/. %{{_builddir}}/{1}/{2}"
.format(archive_prefix,
self.content.tarball_prefix,
destination))
Expand Down

0 comments on commit 87c58eb

Please sign in to comment.