openSUSE / obs-build

OBS build script, can be used with OBS or stand alone
GNU General Public License v2.0
133 stars 185 forks source link

Pass default option from command line #464

Open dilawar opened 6 years ago

dilawar commented 6 years ago

s there a way to pass --yes from command line for the following? I run obs in batch mode and sometimes (though rarely), this happens and build get stuck.

https://github.com/openSUSE/obs-build/blob/7b8232c93b660005096c7eb8749ee2e77ac7f31e/init_buildsystem#L489

  echo "Your build system is broken!! Shall I execute"
    echo
    echo "    rm -rf -- $BUILD_ROOT/*"
    echo
    echo "y - yes, cleanup the build root"
    echo "N - No, abort build (default on enter)"
    echo "c - Continue anyway with this build root"
    echo -n "[y/N/c] "
read ANSWER
mlschroe commented 6 years ago

We always use --clean for OBS builds, would that option make the building too slow for you?

dilawar commented 6 years ago

Well. For testing the spec file; it would make it slow. For OBS cron job, I guess this should do the job.

On 10/19/18, Michael Schroeder notifications@github.com wrote:

We always use --clean for OBS builds, would that option make the building too slow for you?

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/openSUSE/obs-build/issues/464#issuecomment-431308510

-- Dilawar NCBS Bangalore