diff options
author | Dan McGee <dan@archlinux.org> | 2011-06-02 07:59:45 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-06-02 08:04:06 -0500 |
commit | d63599719af6db4fa3e41b4129b4a5b1fef41cf8 (patch) | |
tree | 701a9e79623adaaaa5b85461f3cfbb7bd14697a5 /scripts | |
parent | c1f742d7750a14b680d2ceb2c75d952ccb53585d (diff) | |
download | pacman-d63599719af6db4fa3e41b4129b4a5b1fef41cf8.tar.xz |
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/repo-add.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index dfc93974..02ab389c 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -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 |