osmith submitted this change.
OBS: osmocom:master: ignore missing commit_*.txt
Do not abort if the commit_*.txt file has been deleted from a package in
osmocom:master. Instead, assume the package is outdated, create a new
source package (with commit_*.txt) and replace the existing source
package.
This is useful to force rebuilding a package, e.g. if the previous
source package was built when the git tag was not pushed yet, and
therefore the version in the package and for libraries, in the
pkg-config data, don't have the proper version yet.
Change-Id: Ia6129f533394b94d5d8525eb0513a38a6e1eb7b6
---
M scripts/obs/lib/osc.py
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/scripts/obs/lib/osc.py b/scripts/obs/lib/osc.py
index ef2fc4b..57be783 100644
--- a/scripts/obs/lib/osc.py
+++ b/scripts/obs/lib/osc.py
@@ -86,8 +86,9 @@
if line.endswith(".dsc"):
return line.split("_")[-1][:-4]
- lib.exit_error_cmd(ret, "failed to find package version on OBS by"
- " extracting the version from the file list")
+ print(f"{package}: WARNING: failed to find package version on OBS!")
+ print(f"{package}: assuming the package is outdated")
+ return "0"
def create_package(package):
To view, visit change 37630. To unsubscribe, or for help writing mail filters, visit settings.