repo-add: merge desc and depends files

There is little point in these two files being separated as the whole sync db
is parsed at once.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2015-03-19 15:25:53 +10:00
parent 2408d46c1b
commit b520c6312f

View file

@ -418,18 +418,14 @@ db_write_entry() {
format_entry "BUILDDATE" "$builddate" format_entry "BUILDDATE" "$builddate"
format_entry "PACKAGER" "$packager" format_entry "PACKAGER" "$packager"
format_entry "REPLACES" "${_replaces[@]}" format_entry "REPLACES" "${_replaces[@]}"
} >'desc'
# create depends entry
msg2 "$(gettext "Creating '%s' db entry...")" 'depends'
{
format_entry "DEPENDS" "${_depends[@]}"
format_entry "CONFLICTS" "${_conflicts[@]}" format_entry "CONFLICTS" "${_conflicts[@]}"
format_entry "PROVIDES" "${_provides[@]}" format_entry "PROVIDES" "${_provides[@]}"
format_entry "DEPENDS" "${_depends[@]}"
format_entry "OPTDEPENDS" "${_optdepends[@]}" format_entry "OPTDEPENDS" "${_optdepends[@]}"
format_entry "MAKEDEPENDS" "${_makedepends[@]}" format_entry "MAKEDEPENDS" "${_makedepends[@]}"
format_entry "CHECKDEPENDS" "${_checkdepends[@]}" format_entry "CHECKDEPENDS" "${_checkdepends[@]}"
} >'depends' } >'desc'
popd >/dev/null popd >/dev/null
popd >/dev/null popd >/dev/null