summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrepo-state11
-rwxr-xr-xrepo-update35
2 files changed, 35 insertions, 11 deletions
diff --git a/repo-state b/repo-state
deleted file mode 100755
index 319db83..0000000
--- a/repo-state
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-a=$(date +%Y%m%d+%H%M)
-mkdir -p $a
-cd $a
-
-. /home/joshpar/programas/arch2parabola/repo-list-diff
-# scp parabolavnx@parabolagnulinux.org:~/tmp/rsyncBlacklist.txt ./
-
-cd ..
-exit 0 \ No newline at end of file
diff --git a/repo-update b/repo-update
new file mode 100755
index 0000000..b3ecb92
--- /dev/null
+++ b/repo-update
@@ -0,0 +1,35 @@
+#!/bin/bash
+# -*- coding: utf-8 -*-
+
+source ./config
+source ./local_config
+source ./libremessages
+
+for repo in ${PKGREPOS[@]}; do
+ for arch in ${ARCHES[@]} 'any'; do
+ msg "Syncing ${repo} ${arch}"
+ filter.py -r "${rsync_blacklist}" -k "${blacklist}" -c \
+ \"${rsync_list_command}\ \
+ ${mirror}${mirrorpath}/${repo}/os/${arch}\ \
+ ${repodir}/${repo}/\"
+ find ${repodir}/${repo} -name *${PKGEXT} -print \
+ > ${rsync_not_needed}
+ ${rsync_update_command} \
+ ${mirror}${mirrorpath}/${repo}/os/${arch} \
+ ${repodir}/${repo} \
+ --exclude-from=${rsync_blacklist} \
+ --exclude-from=${rsync_not_needed}
+ done
+ for arch in ${ARCHES[@]}; do
+ if [ -r ${repodir}/${repo}/os/${arch}/${repo}${DBEXT} ]; then
+ clean_repo.py -k ${blacklist} -w ${whitelist} \
+ -p ${docs_dir}/pending-${repo} \
+ -b ${repodir}/${repo}/${repo}${DBEXT}
+ fi
+ clean_repo.py -k ${blacklist} -d ${repodir}/${repo}
+done
+
+db-update
+ftpdir-cleanup
+
+get_license.sh