summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-12-03 13:59:05 +0000
committerFrancois Pons <fpons@mandriva.com>2001-12-03 13:59:05 +0000
commit16d9d216f17bb9572325640f40d9f29532716443 (patch)
tree8d11d7f18549c6b3784f4b800071eee24a1fc3cb
parentec854330f6b480e551270614e4ee63de63e6ca38 (diff)
downloaddrakx-16d9d216f17bb9572325640f40d9f29532716443.tar
drakx-16d9d216f17bb9572325640f40d9f29532716443.tar.gz
drakx-16d9d216f17bb9572325640f40d9f29532716443.tar.bz2
drakx-16d9d216f17bb9572325640f40d9f29532716443.tar.xz
drakx-16d9d216f17bb9572325640f40d9f29532716443.zip
initial revision, simple way to update a local set of medium from /RPMS.
-rwxr-xr-xtools/updatehdlist10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/updatehdlist b/tools/updatehdlist
new file mode 100755
index 000000000..bdd9a4e5c
--- /dev/null
+++ b/tools/updatehdlist
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+topdir=$1
+[ -d "$topdir" ] || topdir=/export
+[ -d "$topdir" ] || exit 1
+add=$topdir/Mandrake/RPMS2
+[ -d "$add" ] || add=$topdir/Mandrake/RPMS
+
+./syncrpms --verbose --clean --update --remove --add $add --from /RPMS --to $topdir/Mandrake/RPMS*
+gendistrib --noclean --distrib $topdir \ No newline at end of file