repo-add: anchor exclusion pattern when generating filelist
Fixes FS#24534. Dotfiles, such as /etc/skel/.bash_profile, were not being included in generated files entries. bsdtar --exclude option supports anchors on the pattern, so using "^.*" instead of ".*" solves our problem and still excludes all root-level dotfiles (e.g. .PKGINFO). Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
c1f742d775
commit
d63599719a
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ db_write_entry()
|
|||
msg2 "$(gettext "Creating '%s' db entry...")" 'files'
|
||||
local files_path="$tmpdir/$pkgname-$pkgver/files"
|
||||
echo "%FILES%" >$files_path
|
||||
bsdtar --exclude='.*' -tf "$pkgfile" >>$files_path
|
||||
bsdtar --exclude='^.*' -tf "$pkgfile" >>$files_path
|
||||
fi
|
||||
|
||||
# create a delta file
|
||||
|
|
Loading…
Add table
Reference in a new issue