Bioware have a new version of the NWN dedicated server. The current server is 1.61 and needs upgrading to 1.62. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 31937 [details] ebuild for NWN dedicated server v1.62 I've copied the ebuild from 1.61 and added a DEPEND on unzip. Ideally, this ebuild should check if NWN 1.61 is installed and d/l the much smaller update instead (and then do the appropriate steps for an update). I haven't even begun reading enough on doing an ebuild to attempt this.
Created attachment 31938 [details] Digest for ebuild file Required for the attached ebuild
There's no way for an ebuild to know whether or not the previous is installed (properly). Not to mention, the way ebuilds work is to *remove* the previous version. What we would have to do is either: 1. Always download 1.61 (if needed) and the 1.62 updates and use those 2. Ignore the previous install and download full 1.62 I tend to go for the first option for "minor" releases and the second option for larger releases.
Ok, I see. If that's the case, then the ebuild follows the correct approach by d/ling the 1.62 version. Again, my ignorance of ebuilds will show here: when uninstalling, does it do specific, targeted deletes? Can I get it to leave any user modified or added files behind?
Actually, for soemthing as large as NWN, I would probably go with the "download 1.61 and 1.62 patch" route, simply due to download size. As for uninstalling, portage only removes files which are not in CONFIG_PROTECT directories and which have not been modified since they were installed. This means any modifications that you have made will be kept, though they could possibly be overwritten by a new install (or even upgrade) unless they are protected by CONFIG_PROTECT.
*** This bug has been marked as a duplicate of 75457 ***
Closing to clean up after bugzilla upgrade. reopen if closed in error. Thanks.
clean up bug list after bugzilla update