-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
osc:build: Avoid piping "yes" when build root is broken #40
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.4 | ||
1.3.5 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -159,12 +159,17 @@ namespace :osc do | |
Dir.chdir osc_checkout_dir do | ||
puts "building package..." if verbose | ||
|
||
# pipe yes to osc build to automatic rebuild broken build root if it happen | ||
command = "yes | osc -A '#{obs_api}' build" | ||
# have separated roots per target system, so sharing is more efficient | ||
broot = "/var/tmp/build-root-#{build_dist}" | ||
command = "osc -A '#{obs_api}' build" | ||
command << " --no-verify" #ignore untrusted BS projects | ||
command << " --release=1" #have always same release number | ||
# have separated roots per target system, so sharing is more effficient | ||
command << " --root=/var/tmp/build-root-#{build_dist}" | ||
command << " --root=#{broot}" | ||
# avoid an interactive question, bsc#1053839 | ||
if File.exist?("#{broot}/not-ready") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ugh, what? who create file? where it is documented? any documentation for that not-ready file would be good. Do not forget that this packaging rake tasks is used for multiple projects, not only libstorage or yast. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I see your point. This PR replaces a I considered There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. upstream fixes is always nice to have :), but if you document this, I am, also fine with this File exists stuff |
||
command << " --clean" | ||
end | ||
# store packages for given base system at one place, so it spped up rebuild | ||
command << " --keep-pkgs=#{pkg_dir}" | ||
command << " #{args[:osc_options]}" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see twice identical comment, see line 167