Skip to content

Commit

Permalink
fix version formatting for cros-keyboard-map (#1989)
Browse files Browse the repository at this point in the history
* fix version formatting

* fix version formatting in rhai script too
  • Loading branch information
june-fish authored Aug 25, 2024
1 parent 1e3ef94 commit 36362e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions anda/system/cros-keyboard-map/cros-keyboard-map.spec
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
%global commit_date 20240824

%global tree_commit b2e69368f96bdf7562dc1a95a0d863c794756842
%global tree_commit_date 20240814
%global tree_shortcommit %(c=%{tree_commit}; echo ${c:0:7})

%global um_commit 46892acafb2fff3f3ace425d4694382c92645feb
%global um_commit_date 20240824
%global um_shortcommit %(c=%{um_commit}; echo ${c:0:7})

%global debug_package %{nil}
%define __os_install_post %{nil}

Name: cros-keyboard-map
Version: %tree_commit_date.%tree_shortcommit.%um_commit_date.%um_shortcommit
Version: %commit_date.%tree_shortcommit.%um_shortcommit
Release: 1%?dist

License: BSD-3-Clause and GPLv3
Expand Down
3 changes: 1 addition & 2 deletions anda/system/cros-keyboard-map/update.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ if filters.contains("nightly") {
rpm.global("commit", gh_commit("WeirdTreeThing/cros-keyboard-map"));
if rpm.changed() {
rpm.release();
rpm.global("tree_commit_date", date());
rpm.global("um_commit_date", date());
rpm.global("commit_date", date());
}
}

0 comments on commit 36362e0

Please sign in to comment.