diff options
| author | Michal Toman <mtoman@redhat.com> | 2010-11-22 10:32:22 +0100 |
|---|---|---|
| committer | Michal Toman <mtoman@redhat.com> | 2010-11-22 10:32:22 +0100 |
| commit | a66d1fcaa1772de0bba2ff8e64bdbdeef77f8afd (patch) | |
| tree | 41453ed5aeb117048ea271254d00cc845eefa45f | |
| parent | 95d616ebead47fef85c1e50bee461ebd194db6ea (diff) | |
| download | abrt-a66d1fcaa1772de0bba2ff8e64bdbdeef77f8afd.tar.gz abrt-a66d1fcaa1772de0bba2ff8e64bdbdeef77f8afd.tar.xz abrt-a66d1fcaa1772de0bba2ff8e64bdbdeef77f8afd.zip | |
Add simple reposync script
| -rwxr-xr-x | retrace/reposync/abrt-retrace-reposync | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/retrace/reposync/abrt-retrace-reposync b/retrace/reposync/abrt-retrace-reposync new file mode 100755 index 00000000..9360816d --- /dev/null +++ b/retrace/reposync/abrt-retrace-reposync @@ -0,0 +1,39 @@ +#!/bin/bash +if [ $3 ] && [ ! $4 ] \ + && ( [ $1 = "fedora" ] || [ $1 = "rhel" ] ) \ + && ( [ $3 = "i686" ] || [ $3 = "x86_64" ] ) +then + cd /var/cache/abrt-retrace + + LOG="$1-$2-$3.log" + date >> $LOG + + if [ $1 = "fedora" ] + then + reposync -a $3 \ + --repoid="$1-$2-$3" \ + --repoid="$1-$2-$3-debuginfo" \ + --repoid="$1-$2-$3-updates" \ + --repoid="$1-$2-$3-updates-debuginfo" \ + --repoid="$1-$2-$3-updates-testing" \ + --repoid="$1-$2-$3-updates-testing-debuginfo" | grep "Downloading" >> $LOG + +# createrepo "$1-$2-$3" >> $LOG +# createrepo "$1-$2-$3-debuginfo" >> $LOG + createrepo "$1-$2-$3-updates" > /dev/null + createrepo "$1-$2-$3-updates-debuginfo" > /dev/null + createrepo "$1-$2-$3-updates-testing" > /dev/null + createrepo "$1-$2-$3-updates-testing-debuginfo" > /dev/null + else + reposync -a $3 --repoid="$1-$2-$3" | grep "Downloading" >> $LOG + fi +else + echo "Usage: $0 distribution version architecture" + echo + echo "where" + echo "distributuon = [fedora|rhel]" + echo "version = release version" + echo "architecture = [i686|x86_64]" + + exit 1 +fi
\ No newline at end of file |
