• R/O
  • HTTP
  • SSH
  • HTTPS

current: Commit

This is for active development.
New funtionalities are to be added actively.


Commit MetaInfo

Revision9b4058a6a44d5716d724c73a2e93f7f95f099820 (tree)
Time2018-09-11 21:55:12
AuthorMamoru Sakaue / MwGhennndo <glmwghennndo@user...>
CommiterMamoru Sakaue / MwGhennndo

Log Message

Fixed bugs about command_do_update_host_files().

Changes to be committed:

modified: lib/chroot/libcommand_do.sh
modified: lib/libcommand_pkgs.sh
modified: lib/libmain.sh

Change Summary

Incremental Difference

--- a/lib/chroot/libcommand_do.sh
+++ b/lib/chroot/libcommand_do.sh
@@ -118,6 +118,7 @@ command_do_chroot_enter ()
118118 command_do_update_host_files ()
119119 {
120120 local dirpath filepath
121+ [ "x$opt_share_port_pkgs_dirs" = xyes ] && return
121122 message_section_title "Update the files affecting package installation of the host environment"
122123 message_echo "INFO: targets are packages, distfiles, port options and ports/packages management tools configurations"
123124 for dirpath in "${DISTDIR}" "${PACKAGES}" "${PORT_DBDIR}"
@@ -138,7 +139,7 @@ command_do_update_host_files ()
138139 mkdir -p "$nodedir"
139140 cp -p "$opt_basedir/builder$dirpath/$file" "$dirpath/$file"
140141 done
141- find -d $dirpath -type d -empty -delete
142+ find -d $dirpath -mindepth 1 -type d -empty -delete
142143 done
143144 for filepath in "${LOCALBASE}"/etc/portsreinstall.conf "${LOCALBASE}"/etc/pkgtools.conf "${LOCALBASE}"/etc/pkg.conf /etc/make.conf "${DBDIR}"
144145 do
--- a/lib/libcommand_pkgs.sh
+++ b/lib/libcommand_pkgs.sh
@@ -303,9 +303,14 @@ command_pkgs_packupgrade_create__manifest_reinst ()
303303 then
304304 if pkg_info_e "$pkgname"
305305 then
306- pkgarc=`pkgsys_pkgname_to_pkgarc "${PACKAGESDIR}" "$pkgname"`
307- timestamp_inst=`pkg_get_pkg_timestamp "$pkgname" 2> /dev/null` || :
308- timestamp_arc=`ls -lD %s "$pkgarc" 2> /dev/null | sed -E 's/[[:space:]]+/ /g' | cut -w -f 6 | grep -v '^$'` || :
306+ if pkgarc=`pkgsys_pkgname_to_pkgarc "${PACKAGESDIR}" "$pkgname"`
307+ then
308+ timestamp_inst=`pkg_get_pkg_timestamp "$pkgname" 2> /dev/null` || :
309+ timestamp_arc=`ls -lD %s "$pkgarc" 2> /dev/null | sed -E 's/[[:space:]]+/ /g' | cut -w -f 6 | grep -v '^$'` || :
310+ else
311+ timestamp_inst=1
312+ timestamp_arc=0
313+ fi
309314 if [ -z "$timestamp_inst" -o -z "$timestamp_arc" -o "$timestamp_arc" -lt "$timestamp_inst" ]
310315 then
311316 if ! ( cd ${PACKAGESDIR}; pkg_create_b "$pkgname" | message_cat )
--- a/lib/libmain.sh
+++ b/lib/libmain.sh
@@ -12,7 +12,7 @@ main_set_version ()
1212 MYVERSION=4.1.0
1313 COMPATIBLE_VERSIONS='^(4\.[1]\.[0-9])$'
1414 # Template for development versions
15- MYVERSION=4.0.0+toward_4.1.0_20180911163139
15+ MYVERSION=4.0.0+toward_4.1.0_20180911205455
1616 COMPATIBLE_VERSIONS='^(4\.[0-1]\.[0-9]]|4\.[0]\.[0]+(|\+toward_4\.[0-1]\.[0-9]+_[0-9]+))$'
1717 }
1818
Show on old repository browser