index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2010-10-08 09:44:22 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-10-13 23:29:26 -0500 |
commit | 6f37ba61ed79876b23d3328185186d9ac0c3332c (patch) | |
tree | 82941599b4dd385c30c2bc4f67523b518e52357d /scripts/repo-add.sh.in | |
parent | 42893e7165e3db0bf068611d5a4164926adcf43a (diff) |
-rw-r--r-- | scripts/repo-add.sh.in | 7 |
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in index d3e3bc82..d09d1b48 100644 --- a/scripts/repo-add.sh.in +++ b/scripts/repo-add.sh.in @@ -188,7 +188,7 @@ db_write_entry() { # blank out all variables local pkgfile="$1" - local pkgname pkgver pkgdesc csize size md5sum url arch builddate packager force \ + local pkgname pkgver pkgdesc epoch csize size md5sum url arch builddate packager force \ _groups _licenses _replaces _depends _conflicts _provides _optdepends local OLDIFS="$IFS" @@ -273,6 +273,11 @@ db_write_entry() [[ -n $builddate ]] && echo -e "%BUILDDATE%\n$builddate\n" >>desc [[ -n $packager ]] && echo -e "%PACKAGER%\n$packager\n" >>desc write_list_entry "REPLACES" "$_replaces" "desc" + # remain backward-compatible for now; put a force entry in the database + if [[ -n $epoch ]]; then + echo -e "%EPOCH%\n#epoch\n" >>desc + echo -e "%FORCE%\n" >>desc + fi [[ -n $force ]] && echo -e "%FORCE%\n" >>desc # create depends entry |