openSUSE / osc

The Command Line Interface to work with an Open Build Service
http://openbuildservice.org/
GNU General Public License v2.0
170 stars 185 forks source link

Allow to specify project and package for osc updatepacmetafromspec #915

Open stoecker opened 3 years ago

stoecker commented 3 years ago

I recently found the very helpful function updatepacmetafromspec

Anyway, it would be a lot more helpful when I could call it like

osc updatepacmetafromspec project package or osc updatepacmetafromspec project/package

like many other commands, as this would allow to do an update without checking out the package at all.

dmach commented 5 months ago

I'm deferring this to the next major version of osc because it would break the current behavior. osc updatepacmetafromspec can take multiple arguments already and all of those are package checkouts.

Example:

osc co --setopt='include_files=*.spec *.inc' --setopt='check_for_request_on_action=0' <project>
# ^^^ speed hack: checkout only spec files, don't check for open requests
cd <project>
osc updatepacmetafromspec *