diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2008-07-31 16:53:28 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-08-19 19:24:56 -0500 |
commit | 9609c0f1351a73e06edcfda1494a41d66c51dcb5 (patch) | |
tree | 0f65e9feccd06abe23fcc1b7e404d3c473f57410 /scripts | |
parent | 6417ac129def4474270cf2716826a83615748068 (diff) |
repo-add: add optdepends to the sync database.
See FS#10630.
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/repo-add.sh.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index 9cbcacbf..538976d7 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -143,7 +143,7 @@ db_write_entry() local pkgname pkgver pkgdesc url builddate packager csize size \ group depend backup license replaces provides conflict force \ _groups _depends _backups _licenses _replaces _provides _conflicts \ - startdir + startdir optdepend _optdepends local OLDIFS="$IFS" # IFS (field separator) is only the newline character @@ -163,6 +163,7 @@ db_write_entry() replaces=*) _replaces="$_replaces$replaces\n" ;; provides=*) _provides="$_provides$provides\n" ;; conflict=*) _conflicts="$_conflicts$conflict\n" ;; + optdepend=*) _optdepends="$_optdepends$optdepend\n" ;; esac done @@ -215,6 +216,7 @@ db_write_entry() write_list_entry "DEPENDS" "$_depends" "depends" write_list_entry "CONFLICTS" "$_conflicts" "depends" write_list_entry "PROVIDES" "$_provides" "depends" + write_list_entry "OPTDEPENDS" "$_optdepends" "depends" # create deltas entry if there are delta files for delta in $startdir/$pkgname-*-*_to_*-*-$arch.delta; do |