SynologyOpenSource / pkgscripts-ng

Synology DSM6.0 package toolkit framework
162 stars 56 forks source link

pkg_util.sh - pkg_dump_info removes fields #4

Closed itn3rd77 closed 6 years ago

itn3rd77 commented 6 years ago

Hi,

is it intentional that the pkg_dump_info function from pkg_util.sh removes all unknow fields not defined in fields variable or is this a bug?

    local fields="package version maintainer maintainer_url distributor distributor_url arch exclude_arch model
        adminprotocol adminurl adminport firmware dsmuidir dsmappname checkport allow_altport
        startable helpurl report_url support_center install_reboot install_dep_packages install_conflict_packages install_dep_services
        instuninst_restart_services startstop_restart_services start_dep_services silent_install silent_upgrade silent_uninstall install_type
        checksum package_icon package_icon_120 package_icon_128 package_icon_144 package_icon_256 thirdparty support_conf_folder log_collector
        support_aaprofile auto_upgrade_from offline_install precheckstartstop";

If I define beta=yesor description_enu="Sample package"inside INFO.sh these fields are removed.

Regards Ingo