I just double-checked the UpdateSettings source and confirmed this. Take a look at lines 260 thru 279. UpdateSettings builds an opts_available array based on $difftype. 'create' is only added if the file doesn't already exist in /Programs/Foo/Settings. Further down (289), hints are only used if they're in the opts_available array. So, even though the create action and the overwrite action are technically the same, a 'create' hint will only have an effect on UpdateSettings' behavior when current is missing.
The docs I linked to have the available hints broken into categories along with a description of when each one is available, or you could just read the source now that you know where to look :) > Assuming everything still works the way I documented it long long > ago, create doesn't overwrite. "overwrite" overwrites. > > UpdateSettings determines what it can do before it determines what it > should do. If a file already exists, "create" won't be possible, so a > create hint will be ignored. > > http://gobo.kundor.org/wiki/UpdateSettings#Update_Commands > > > >> I tried to find a hint, but it seems like there is no "use default >> when >> current is missing". The hints "create" and "overwrite" both do the >> same >> thing and "skip" does nothing. I'd like "create" not to overwrite >> if the >> file already exist, or have I missed something? >> >> -- >> /Jonas >> >> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >> _______________________________________________ >> gobolinux-devel mailing list >> gobolinux-devel@lists.gobolinux.org >> http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel > > _______________________________________________ > gobolinux-devel mailing list > gobolinux-devel@lists.gobolinux.org > http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel _______________________________________________ gobolinux-devel mailing list gobolinux-devel@lists.gobolinux.org http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel