Closed benrubson closed 7 years ago
Could you read the values for
from the config file ?
From the config file ?
These values are taken from the INFO
file, this PR allows for example to set in this file :
maintainer=""
So that this field won't be displayed in Packet Center.
However, if we don't set maintainer
in INFO file, the default value SSpkS
will be displayed.
I meant putting the default values in the configuration file. So if someone wants to change them they can just edit the config file
Oh sorry, understood now :)
JsonOutput
does not know Config
yet, not sure how to do it properly (without breaking files under tests/
), but I could have a look deeper.
OK, tests are failing, as I did not update them yet.
Scrutinizer is still complaining. Could you fix the tests, too, please? (I think you can just give an empty Config object.)
btw: You can run the checks locally by executing vendor/bin/phpunit
from the project's root directory.
Do you know if the Synology can work with null
values or does it need an empty string (""
)?
I tested with null values, Package Center works correctly, it simply does not show the values. Would you prefer an empty value ?
Looking good now. I'm still waiting for @jdel 's green light to merge all your contributions. Many thanks for them!
U're welcome, thank you for your great work 👍
Do you know if the Synology can work with null values or does it need an empty string ("")?
Well, I finally faced (and reproduced) a case where Package Center was refreshing indefinitely with null values. Empty string solves this issue.
Hello,
This PR allows to set empty maintainer and distributor in INFO file, so that this info is not displayed in Packet Center.
Thank you 👍
Ben