Dirk Stoecker wrote:
Call
osc build openSUSE_10.2 i586 whatever.spec
Now do a
osc build openSUSE_10.3 i586 whatever.spec
osc will not recognice, that the build environment is totally different and mixes the requirements, which will usually fail totally. But what if it does not fail? Then the result will be very confusing.
Sure "--clean" in the call fixes this. But a better solution would be to have a file e.g. ".environment-type" somewhere (e.g. in build path) and this contains "openSUSE_10.2 i586". Now when the environment is different, it should be cleared. Pretty straightforward I think :-)
Well, in case the repositories are very similar, you don't want to rebuild the whole chroot from scratch. E.g. in server:php, we have: openSUSE_10.3 server_apache_openSUSE_10.3 server_database_openSUSE_10.3 which only differ in the apache and mysql version, means you can switch just fine. But I agree that the current way it works isn't exactly what users would expect. What about making the automatic clean configurable? [general] build-root-clean: never # never clean automatically build-root-clean: arch-change # clean when architecture changes build-root-clean: repo-change # clean when repo/arch changes (default) build-root-clean: always # always clean plus a --no-clean option to override the logic. Comments? Michal --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org