aboutsummaryrefslogtreecommitdiffstats
path: root/qarepo-helper
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-25 18:08:27 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-11-25 18:29:06 +0000
commit4c5a904babd8dbeb3a002ef928fa42d70e6aed58 (patch)
tree0d57a9bebca89727d9e2320c6d0a570d33383c26 /qarepo-helper
parentf2caaa0e357b2a321fe5e26b08c4c1ad50c96be2 (diff)
downloadqarepo-4c5a904babd8dbeb3a002ef928fa42d70e6aed58.tar
qarepo-4c5a904babd8dbeb3a002ef928fa42d70e6aed58.tar.gz
qarepo-4c5a904babd8dbeb3a002ef928fa42d70e6aed58.tar.bz2
qarepo-4c5a904babd8dbeb3a002ef928fa42d70e6aed58.tar.xz
qarepo-4c5a904babd8dbeb3a002ef928fa42d70e6aed58.zip
Use file:// prefix when adding local repository, to only allow local path.
Diffstat (limited to 'qarepo-helper')
-rwxr-xr-xqarepo-helper2
1 files changed, 1 insertions, 1 deletions
diff --git a/qarepo-helper b/qarepo-helper
index 00107fa..49a4b61 100755
--- a/qarepo-helper
+++ b/qarepo-helper
@@ -1,6 +1,6 @@
#!/bin/sh
case $1 in
disable) /usr/sbin/urpmi.removemedia "QA Testing ($2-bit)";;
- enable) /usr/sbin/urpmi.addmedia --update "QA Testing ($2-bit)" $3;;
+ enable) /usr/sbin/urpmi.addmedia --update "QA Testing ($2-bit)" file://$3;;
update) /usr/sbin/urpmi.update "QA Testing ($2-bit)";;
esac