FreeBSD Bugzilla – Attachment 139990 Details for
Bug 186406
ports-mgmt/pkg_replace: preserve automatic flag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.14 KB, created by
kamada
on 2014-02-03 12:00:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
kamada
Created:
2014-02-03 12:00:00 UTC
Size:
1.14 KB
patch
obsolete
>--- /usr/local/sbin/pkg_replace 2014-02-03 08:15:28.000000000 +0900 >+++ pkg_replace 2014-02-03 19:57:49.000000000 +0900 >@@ -1290,7 +1290,8 @@ > } > > do_replace() { >- local pkg_log pkg_tmpdir old_package old_required_by preserved_files >+ local pkg_log pkg_tmpdir old_package old_required_by preserved_files \ >+ automatic_flag > > if is_yes ${use_pkgng}; then > local old_origin new_origin >@@ -1365,6 +1366,7 @@ > backup_package "${cur_pkg_name}" "${old_package}" && > if is_yes ${use_pkgng}; then > old_origin=`${PKG_INFO} -qo ${cur_pkg_name}` || return 1 >+ automatic_flag=$(${PKG_QUERY} %a "${cur_pkg_name}") > else > backup_file "${cur_pkg_pkgdir}/+REQUIRED_BY" "${old_required_by}" > fi && >@@ -1381,6 +1383,7 @@ > cur_pkg_pkgdir=${PKG_DBDIR}/${pkg_name} > if is_yes ${use_pkgng}; then > new_origin=`${PKG_INFO} -qo ${pkg_name}` >+ ${PKG_SET} -y -A "${automatic_flag}" "${pkg_name}" > fi > else > log="install error" >@@ -1389,6 +1392,9 @@ > "please reinstall '${old_package}' manually." > return 1 > } >+ if is_yes ${use_pkgng}; then >+ ${PKG_SET} -y -A "${automatic_flag}" "${old_package}" >+ fi > fi > else > log="deinstall error"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 186406
: 139990 |
139991