xbps-src: fix fetch phase with depends, performance improvements.
- The fetch phase *must* run after installing pkg dependencies, otherwise it could fail if we need them for fetching. - Performance improvements for xbps-src. Only source shutils files at the start, not every time we use a function.
This commit is contained in:
parent
12b16e75a0
commit
7984b39928
10 changed files with 10 additions and 63 deletions
|
@ -49,7 +49,6 @@ xbps_write_metadata_pkg()
|
|||
. $XBPS_SRCPKGDIR/${sourcepkg}/${subpkg}.template
|
||||
pkgname=${subpkg}
|
||||
set_tmpl_common_vars
|
||||
. ${XBPS_SHUTILSDIR}/verify_rundeps.sh
|
||||
verify_rundeps ${DESTDIR}
|
||||
xbps_write_metadata_pkg_real
|
||||
done
|
||||
|
@ -66,7 +65,6 @@ xbps_write_metadata_pkg()
|
|||
fi
|
||||
setup_tmpl ${sourcepkg}
|
||||
# Verify pkg deps.
|
||||
. ${XBPS_SHUTILSDIR}/verify_rundeps.sh
|
||||
verify_rundeps ${DESTDIR}
|
||||
xbps_write_metadata_pkg_real
|
||||
}
|
||||
|
@ -412,7 +410,6 @@ _EOF
|
|||
# Create the INSTALL/REMOVE scripts if package uses them
|
||||
# or uses any available trigger.
|
||||
#
|
||||
. ${XBPS_SHUTILSDIR}/metadata_scripts.sh; \
|
||||
xbps_write_metadata_scripts_pkg install; \
|
||||
xbps_write_metadata_scripts_pkg remove; \
|
||||
} || return $?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue