Skip to content

Commit

Permalink
Fix repopath handling when using -s
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmateojr authored Jun 12, 2017
1 parent 15f36d0 commit ebcc3d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dtmrepo
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ download_package() {
declare -A _PKGS
_PKGLIST=$(YUM0=${_RELEASEVER} YUM1=${_ARCH} yumdownloader -q ${_YUMCONF} --disablerepo=* --enablerepo=${_REPOID} --resolve --urls ${_PACKAGES}|grep '\.rpm$')
for _PKG in ${_PKGLIST}; do
_PKGS["$(dirname ${_PKG##*${_BASEDIR}})"]+="$(basename ${_PKG%.rpm}) "
_PKGS["$(dirname ${_PKG##*/${_BASEDIR}/})"]+="$(basename ${_PKG%.rpm}) "
done
for _PKGDIR in "${!_PKGS[@]}"; do
YUM0=${_RELEASEVER} YUM1=${_ARCH} yumdownloader ${_YUMCONF} ${_QUIET} --disablerepo=* --enablerepo=${_REPOID} --destdir="${_DESTDIR}${_PKGDIR}" ${_PKGS[${_PKGDIR}]}
YUM0=${_RELEASEVER} YUM1=${_ARCH} yumdownloader ${_YUMCONF} ${_QUIET} --disablerepo=* --enablerepo=${_REPOID} --destdir="${_DESTDIR}/${_PKGDIR}" ${_PKGS[${_PKGDIR}]}
done
fi
) 1001> ${_LOCKFILE}
Expand Down

0 comments on commit ebcc3d4

Please sign in to comment.