Commit 0c6eb8a4 authored by Andrea Scarpino's avatar Andrea Scarpino

fix

parent 0afaadde
......@@ -3,9 +3,11 @@
# workspace: your working dir. For example:
WORKSPACE="/home/<user>/myrepository"
# url: your repository url. For example:
URL="http://www.myrepository.org/arch/i686"
URL="http://www.myrepository.org/${FTP_DIR}"
# repo: your repository name
REPO="myrepo"
# arch: what architecture your repo offer
ARCH=('i686' 'x86_64')
# changelog: if you haven't one, set NOCHANGELOG=TRUE
CHANGELOG="ChangeLog"
......@@ -17,7 +19,7 @@ PASSWORD="passwd"
# ftp url (without the repo dir)
FTP_URL="ftp.archrepo.org"
# ftp repo dir
FTP_DIR="/arch/i686"
FTP_DIR="/arch"
# lftp commands or set them in ~/.lftp/rc
LFTP_CMDS="set ftp:ssl-protect-data true; set net:max-retries 3;"
......
......@@ -348,9 +348,8 @@ upload(){
get_pkgs_list(){
for package in `tar -tf "${WORKSPACE}/${REPO}.db.tar.gz" | grep -vE 'desc$|depends$' | sed -e 's:\/$::g'`; do
local pkgname=$(echo ${package} | awk -F"-" '{for (i=1; i<NF - 2; i++) printf "%s-", $i; printf "$(NF - 2)\n" }')
local pkgver=$(echo ${package} | awk -F"-" '{print $(NF - 1)}')
local pkgrel=$(echo ${package} | awk -F"-" '{print $NF}')
local pkgname=$(echo ${package} | awk -F"-" '{for (i=1; i<NF - 2; i++) printf "%s-", $i; printf $(NF - 2)"\n" }')
packages="${packages} ${pkgname}"
done
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment