Add packages to version string to support composite update
Fix random typos
Make factory test case insensitive
Revise update check to provide a more consistent version string, and to provide it in JSON format
Fix copyright message years to reflect BSDP -> ESF -> Netgate
Update copyright notices to 2019. Happy New Year
Fix #9121: Initialize arrays to prevent PHP 7 errors
Fix #9102: Suppress stream_select() undesired warnings
Initialize package arrays before use. Fixes #9067
Fix #7604: Rework pkg reinstall on config restore
- Remove old code needed to upgrade fom < 2.3 to 2.3- Simplify logic using a single file /conf/needs_package_sync- Create /etc/rc.package_reinstall_all, a script used to reinstall all packages present in config but not on pkg database...
Do not remove needs_package_sync file when it's not needed
Remove code used to upgrade from < 2.3 to 2.3
Skip repo check for base packages
Revert "Parameter must be an array or 'all'"
Fix #8715 respecting get_pkg_info parameter when it doesn't start withpfSense-pkg
This reverts commit 70a7c029fbe61935da7474358e7359bb9dc1bcc3.
Make sure additional packages are provided by official pkg repo
Fix style
Parameter must be an array or 'all'
Add missing global $g declaration
Create pkg_conf_setup() to setup pkg.conf
It will be necessary in near future for thoth setup
Add a global to keep valid meta package suffixes
PHP7 - Resolve Warning: Use of undefined constant āpā in System->Update
Change reported version to installed version rather than product version for more detail
Fix #8208
When restoring backup, delete packages not present in new config.xml
Ticket #8208
When restoring backup, set default pkg repository
Do not call get_pkg_info() when it's not going to be used
Respect default repo
Deduplicate build_repo_list() and get_repo_name()
Update the Copyright notice for pfSense.
Merge pull request #3866 from PiBa-NL/20171104-pkg-reinstallmissingpackage
Use a strict check of array_search() result
Remove empty items from output
Detect when system is running a newer version than the one available on remote repository
Always do rquery when pkg search is not used
Fix #7946: Display installed packages missing on remote repo to let user to delete it
Provide mechanism to allow for transition to a new package repository server
pkg, reinstall missing packagechange the reference from install_package(.) as this function does not exist.
Fixed #8035
(cherry picked from commit 9c4e7fd3e155d08911feb0afc527af21d79ce917)
Use pkg-static binary to prevent errors when moving to new major FreeBSD version
Update cache when GUI successfully update pkg metadata
Speedup get_system_pkg_version() considering only installed packages
Use cache file to show pfSense version information
Run rc.update_pkg_metadata in background when repository changes
Remove extra spaces from User Agent
Send uniqueid instead of UUID on user-agent
Declare user_agent variable in the function it's used
Refine some syslogd restarts, add a way to send it a HUP to reload w/o a full restart. Part of ticket #7256
get_pkg_info improve installed_pkgs_only case
Merge pull request #3659 from PiBa-NL/plugin_optimize_20170321
Remove redundant check, get_pkg_info() call uses a parameter to return only installed packages
Fix indent and spaces
Use correct function (is_pkg_installed) and unbreak get_pkg_info()
pkg_call_plugins put includefile and supported plugins in the normal config.xml so there is no need to parse the package xml for them. this improves performance significantly for several pages like such as 'ipsec overview' and 'openvpn server edit page' which use certificates and gatewaygroups which acquire some information from plugins.
load package add-on tabs into config to avoid parsing all installed package xml's, fix tabgroup filter
Run custom deinstall commands during the deinstall phase instead of post-deinstall, otherwise they will never get run. Fixes #7401
Some small improvements to help with ticket #7256
They don't fix the problem but avoid some pitfalls that could contribute to it.
Fix the pkg_call() and set the timeout to a sane value (Bug #6594)
Fix #7257: Use pfSense-upgrade to look for new versions
Code with multiple %s in etc
Misc cleanups at get_pkg_info()
fix copy/paste - I think!
use wrapped version of pkg info -e instead
get_pkg_info() fallback using pkg info if no local copy of repo catalog (resubmit)
Resubmit of PR #3157 with fix.
The issue in #3157 was that `pkg info` and `pkg search`, undocumented in man pages, seem to handle things differently if no packages match the pattern string. `pkg search` gives an error "No packages match [$pkgs]", whereas `pkg search` doesn't give an error....
Revert "get_pkg_info() fallback using pkg info if no local copy of repo catalog"
This reverts commit e47af756de79d4e8b0356cf22f72f62f09e9ad7d.
get_pkg_info() fallback using pkg info if no local copy of repo catalog
Current behaviour
At the moment, get_pkg_info() is used to get all information on packages. The parameter $local_only is set to request info directly from the local copy of the repo catalog (using -U) without requesting the remote repo catalog or updating the local copy from the remote repo catalog. If the calling code wants only installed pkgs, it filters the returned list of pkgs looking for $pkg['installed'] == true....
Populate the HTTP_PROXY_AUTH env var. Ticket #6949
Deprecate nanobsd platform and remove all conditionals that uses it
Remove all calls to conf_mount_r* functions
Merge pull request #3156 from stilez/patch-43
Create pkg.conf with ABI settings
Remove unused arg in get_pkg_info()
The 2nd argument ($info) isn't used in that function, and doesn't seem to be used anywhere else in the codebase.
Move copyright from ESF to Netgate
Protect package_reinstall_all()
If one restores a config.xml without packages, there will be a warning about invalid argument supplied for foreach(). This commit fixes the problem.
Move to Apache License 2.0
Review license / copyright on all files (1st round)
Add missing -R parameter to pkg call
Implement pkg_valid_name()
Fix package_reinstall_all post-upgrade when packages have been removed in pre_upgrade. Ticket #6137
Only execute remote search operation on first call of get_pkg_info(), this should fix #6177
Workaound fixes #6320
Fix extrat return statement
Fix #6137:
- Uninstall all packages on current system before upgrade usingpre_upgrade_command script- Create a file containing all packages previously installed andreinstall them on first boot after upgrade
Test for internet connection 3 times trying to reinstall packages after upgrade or config restore. Fixes #6180
Reduce values of FETCH_TIMEOUT and FETCH_RETRY to help ticket #6177
Setup HTTP_PROXY environment variable for pkg when it's called from the GUI and also for pfSense-upgrade
Rework the way repo packages work
- Distribute only a single pfSense-repo package containing all templates- Create a symlink pointing to selected repo- Do not limit it only to pfSense-repo and pfSense-repo-devel
(cherry picked from commit a90f1c9b12c4d31ea845fa04188e599ba28dbaf1)
Remove workaround introduced in a2febf9a0. It reduces download timeout to 10s and break update from 2.2 to 2.3
Add an option to define extra env vars to pkg_call() and pkg_exec()
pkg-utils typo in comment
Detect binary packages installed but not registered in the system and do it during boot
Add an option to get_pkg_info() that makes it do not try to update metadata
Remove get_pkg_id, last calls to it was removed
Merge pull request #2667 from phil-davis/patch-1
Internationalize etc inc i through s
pkg-utils update_status text typo
Make sure LANG = C for pkg calls
Do not set PKG_AUTOUPDATE=false anymore and let pkg to update metadata when it's necessary. Some users reported to see issues in cases where update was necessary
Revert "Force update if code reaches this point"
This reverts commit 5bcad0f5ec57858a6713cfbdbfcdf7004621b01b.
Revert "Avoid mounting / rw without need when it's possible"
This reverts commit 0305284cf2d66119d6df8e57cdc52eb3b4d478af.
Avoid mounting / rw without need when it's possible
Force update if code reaches this point