xbps-src: fix genindex target for directory passed as argument.
--HG-- extra : convert_revision : 80712b3d526353eb81448f31cfa82b7cdb60e304
This commit is contained in:
parent
679900de1d
commit
4347b28383
1 changed files with 8 additions and 7 deletions
|
@ -69,8 +69,8 @@ write_repo_pkgindex()
|
||||||
msg_warn "Couldn't extract $(basename $i) metadata!"
|
msg_warn "Couldn't extract $(basename $i) metadata!"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
write_repo_pkgindex_dict $propsf $pkgindexf $(basename $i) \
|
write_repo_pkgindex_dict $propsf $pkgindexf $repodir \
|
||||||
$xbps_machine
|
$(basename $i) $xbps_machine
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
msg_warn "Couldn't write $i metadata to index file!"
|
msg_warn "Couldn't write $i metadata to index file!"
|
||||||
continue
|
continue
|
||||||
|
@ -88,8 +88,8 @@ write_repo_pkgindex()
|
||||||
msg_warn "Couldn't extract $(basename $i) metadata!"
|
msg_warn "Couldn't extract $(basename $i) metadata!"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
write_repo_pkgindex_dict $propsf $pkgindexf $(basename $i) \
|
write_repo_pkgindex_dict $propsf $pkgindexf $repodir \
|
||||||
noarch
|
$(basename $i) noarch
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
msg_warn "Couldn't write $i metadata to index file!"
|
msg_warn "Couldn't write $i metadata to index file!"
|
||||||
continue
|
continue
|
||||||
|
@ -161,11 +161,12 @@ write_repo_pkgindex_dict()
|
||||||
{
|
{
|
||||||
local pkgf="$1"
|
local pkgf="$1"
|
||||||
local indexf="$2"
|
local indexf="$2"
|
||||||
local binpkgf="$3"
|
local repodir="$3"
|
||||||
local arch="$4"
|
local binpkgf="$4"
|
||||||
|
local arch="$5"
|
||||||
local first_dict=
|
local first_dict=
|
||||||
local tmpdictf=
|
local tmpdictf=
|
||||||
local binpkg="$XBPS_PACKAGESDIR/$arch/$binpkgf"
|
local binpkg="$repodir/$arch/$binpkgf"
|
||||||
local getsize=$(du -b $binpkg|awk '{print $1}')
|
local getsize=$(du -b $binpkg|awk '{print $1}')
|
||||||
|
|
||||||
[ -z "$pkgf" -o -z "$indexf" -o -z "$binpkgf" ] && return 1
|
[ -z "$pkgf" -o -z "$indexf" -o -z "$binpkgf" ] && return 1
|
||||||
|
|
Loading…
Reference in a new issue