git://git.onelab.eu
/
build.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use latest sfa no matter what
[build.git]
/
partial-repo.sh
diff --git
a/partial-repo.sh
b/partial-repo.sh
index
a41ced1
..
06da266
100755
(executable)
--- a/
partial-repo.sh
+++ b/
partial-repo.sh
@@
-14,7
+14,7
@@
case "$1" in *-h*) usage ;; esac
set -e
for rpms_dir in $(find "$@" -name RPMS) ; do
set -e
for rpms_dir in $(find "$@" -name RPMS) ; do
- cd $rpms_dir
+ pushd $rpms_dir >& /dev/null
cd ..
echo "==================== Dealing with repo $(pwd)"
mkdir -p PARTIAL-RPMS
cd ..
echo "==================== Dealing with repo $(pwd)"
mkdir -p PARTIAL-RPMS
@@
-22,5
+22,5
@@
for rpms_dir in $(find "$@" -name RPMS) ; do
echo "==================== building packages index in $(pwd) .."
createrepo PARTIAL-RPMS
echo '==================== DONE'
echo "==================== building packages index in $(pwd) .."
createrepo PARTIAL-RPMS
echo '==================== DONE'
-
cd -
>& /dev/null
+
popd
>& /dev/null
done
done