OSDN Git Service

Fixed bugs about command_do_update_host_files().
authorMamoru Sakaue / MwGhennndo <glmwghennndo@users.sourceforge.jp>
Tue, 11 Sep 2018 12:55:12 +0000 (20:55 +0800)
committerMamoru Sakaue / MwGhennndo <glmwghennndo@users.sourceforge.jp>
Tue, 11 Sep 2018 12:55:12 +0000 (20:55 +0800)
 Changes to be committed:
modified:   lib/chroot/libcommand_do.sh
modified:   lib/libcommand_pkgs.sh
modified:   lib/libmain.sh

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

index bf283c3..9a49de4 100644 (file)
@@ -118,6 +118,7 @@ command_do_chroot_enter ()
 command_do_update_host_files ()
 {
        local dirpath filepath
+       [ "x$opt_share_port_pkgs_dirs" = xyes ] && return
        message_section_title "Update the files affecting package installation of the host environment"
        message_echo "INFO: targets are packages, distfiles, port options and ports/packages management tools configurations"
        for dirpath in "${DISTDIR}" "${PACKAGES}" "${PORT_DBDIR}"
@@ -138,7 +139,7 @@ command_do_update_host_files ()
                        mkdir -p "$nodedir"
                        cp -p "$opt_basedir/builder$dirpath/$file" "$dirpath/$file"
                done
-               find -d $dirpath -type d -empty -delete
+               find -d $dirpath -mindepth 1 -type d -empty -delete
        done
        for filepath in "${LOCALBASE}"/etc/portsreinstall.conf "${LOCALBASE}"/etc/pkgtools.conf "${LOCALBASE}"/etc/pkg.conf /etc/make.conf "${DBDIR}"
        do
index e1b0bd4..448fe4b 100644 (file)
@@ -303,9 +303,14 @@ command_pkgs_packupgrade_create__manifest_reinst ()
                then
                        if pkg_info_e "$pkgname"
                        then
-                               pkgarc=`pkgsys_pkgname_to_pkgarc "${PACKAGESDIR}" "$pkgname"`
-                               timestamp_inst=`pkg_get_pkg_timestamp "$pkgname" 2> /dev/null` || :
-                               timestamp_arc=`ls -lD %s "$pkgarc" 2> /dev/null | sed -E 's/[[:space:]]+/ /g' | cut -w -f 6 | grep -v '^$'` || :
+                               if pkgarc=`pkgsys_pkgname_to_pkgarc "${PACKAGESDIR}" "$pkgname"`
+                               then
+                                       timestamp_inst=`pkg_get_pkg_timestamp "$pkgname" 2> /dev/null` || :
+                                       timestamp_arc=`ls -lD %s "$pkgarc" 2> /dev/null | sed -E 's/[[:space:]]+/ /g' | cut -w -f 6 | grep -v '^$'` || :
+                               else
+                                       timestamp_inst=1
+                                       timestamp_arc=0
+                               fi
                                if [ -z "$timestamp_inst" -o -z "$timestamp_arc" -o "$timestamp_arc" -lt "$timestamp_inst" ]
                                then
                                        if ! ( cd ${PACKAGESDIR}; pkg_create_b "$pkgname" | message_cat )
index 2335c4c..fc1ca3f 100644 (file)
@@ -12,7 +12,7 @@ main_set_version ()
        MYVERSION=4.1.0
        COMPATIBLE_VERSIONS='^(4\.[1]\.[0-9])$'
        # Template for development versions
-       MYVERSION=4.0.0+toward_4.1.0_20180911163139
+       MYVERSION=4.0.0+toward_4.1.0_20180911205455
        COMPATIBLE_VERSIONS='^(4\.[0-1]\.[0-9]]|4\.[0]\.[0]+(|\+toward_4\.[0-1]\.[0-9]+_[0-9]+))$'
 }