[NEW] Command show status newly supports inst_by_pkg.
Changes to be committed:
modified: lib/libcommand_show.sh
modified: lib/libdatabase_query.sh
modified: lib/libmain.sh
modified: lib/libreinstall.sh
modified: lib/main/libcommand.sh
modified: lib/main/libusage.sh
modified: man/portsreinstall.8
[ -n "$COMMAND_SHOW_LEVEL" ] || COMMAND_SHOW_LEVEL=`options_get_dependency_level`
dbsuffix=$COMMAND_SHOW_DEPTAG.$COMMAND_SHOW_LEVEL
case $COMMAND_SHOW_SUBJECT in
- todo | done | redo | resolved | failure | taboo | freeze | need | noneed | deleted | restored | conflict )
+ todo | done | redo | resolved | inst_by_pkg | failure | taboo | freeze | need | noneed | deleted | restored | conflict )
database_query_show_single_list_exec "$COMMAND_SHOW_SUBJECT" \
"$COMMAND_SHOW_DEPTAG" "$COMMAND_SHOW_LEVEL" || :
;;
;;
status )
grandtitle="Success/failure status in (re)installation"
- lists='todo|done|redo|resolved|failure|taboo|freeze|need|noneed|deleted|restored|conflict'
+ lists='todo|done|redo|resolved|inst_by_pkg|failure|taboo|freeze|need|noneed|deleted|restored|conflict'
database_query_show_list_inclusion_of_matching_port "$grandtitle" "$lists" "$pkgnamedb" \
"$COMMAND_SHOW_DEPTAG" "$COMMAND_SHOW_LEVEL" "$@"
;;
message_echo
list=manually_done.list
;;
+ inst_by_pkg )
+ message_echo "The following ports are configured default and installed by prebuilt packages"
+ message_echo
+ list=installation_complete_by_pkg.list
+ ;;
failure )
message_echo "The following ports experienced failures and kept to be old or uninstalled:"
message_echo
resolved )
list=manually_done.list
;;
+ inst_by_pkg )
+ list=installation_complete_by_pkg.list
+ ;;
failure )
list=failed.list
;;
MYVERSION=4.1.0
COMPATIBLE_VERSIONS='^(4\.[0-1]\.[0-9])$'
# Template for development versions
- MYVERSION=4.0.0+toward_4.1.0_20180816020334
+ MYVERSION=4.0.0+toward_4.1.0_20180816023713
COMPATIBLE_VERSIONS='^(4\.[0-1]\.[0-9]]|4\.[0]\.[0]+(|\+toward_4\.[0-1]\.[0-9]+_[0-9]+))$'
}
then
touch "$REINSTALL_DBNODE_DIR/installed_timestamp"
touch "$REINSTALL_DBNODE_DIR/installed_by_pkg"
+ fileedit_add_a_line_if_new "$origin" "${DBDIR}/installation_complete_by_pkg.list"
reinstall_deregister_stage in_bypkg
reinstall_tell_update_to_depandents
reinstall_closing_operations_after_successful_install
message_echo "WARNING: (Re)installation-by-package is unsuccessful, so retrying by using port." >&2
fi
fi
+ fileedit_rm_a_line "$origin" "${DBDIR}/installation_complete_by_pkg.list"
return 1
}
shift || :
fi
case $COMMAND_SHOW_SUBJECT in
- todo | done | redo | resolved | failure | taboo | freeze | need | noneed | restored | deleted | conflict )
+ todo | done | redo | resolved | inst_by_pkg | failure | taboo | freeze | need | noneed | restored | deleted | conflict )
_command_parse_args__chk_no_arg $#
;;
leaves | obsolete )
| packupgrade create | packupgrade crop [path] | packupgrade clean
| make glob [target] [arguments...]
| glob globs... | pkg globs... | options
- | show todo | show done | show resolved | show failure | show redo
+ | show todo | show done | show resolved | show inst_by_pkg | show failure | show redo
| show taboo | show need | show noneed | show restored | show deleted
| show conflict
| show leaves [selected | unselected] | show obsolete [selected | unselected]
Manually reinstalled ports registered by \fBok\fR command.
With \fB\-a\fR option, the first and second columns denote the flavored origin and initial/new/current package name, respectively.
.TP
+\fBinst_by_pkg\fR
+Ports installed by official prebuilt packages because their configurations are default.
+With \fB\-a\fR option, the first and second columns denote the flavored origin and initial/new/current package name, respectively.
+.TP
\fBfailure\fR
Failed ports.
With \fB\-a\fR option, the first, second and third columns denote the flavored origin, initial/new/current package name, failed make target and manually resolved status (yes or no), respectively.
.TP
\fBstatus\fR \fIglob1\fR [\fIglob2\fR ...]
Current success/failure status in (re)installation of matching ports/packages.
-Returned values are null, "todo", "done", "resolved", "failure", "redo", "taboo", "freeze", "need", "noneed", "restored", "deleted" or "conflict", where null means that they are untouched in the current option configuration or temporary reset due to configuration changes.
+Returned values are null, "todo", "done", "resolved", "inst_by_pkg", "failure", "redo", "taboo", "freeze", "need", "noneed", "restored", "deleted" or "conflict", where null means that they are untouched in the current option configuration or temporary reset due to configuration changes.
.TP
\fBerrormessage\fR \fIglob1\fR [\fIglob2\fR ...]
Error message in (re)installation of matching ports/packages.
.PP
[NEW] \fBauto\fR command is added to \fBportsreinstall\-chroot\fR(8).
.PP
-[NEW] \fBpkg\fR, \fBmake\fR, \fBshow errormessage\fR, \fBshow leaves\fR and \fBshow obsolete\fR commands are added.
+[NEW] \fBpkg\fR, \fBmake\fR, \fBshow errormessage\fR, \fBshow inst_by_pkg\fR, \fBshow leaves\fR and \fBshow obsolete\fR commands are added.
+.PP
+[NEW] Command \fBshow status\fR newly supports \fBinst_by_pkg\fR.
.PP
[NEW] BUILDCONFLICT and INSTCONFLICT sections are added to ${LOCALBASE}/etc/portsreinstall.conf.
.PP