From fe87cdf0efac79c841bfff3d2c8cd815ffbde52b Mon Sep 17 00:00:00 2001 From: Celeste <20312-Celeste@users.gitlab.alpinelinux.org> Date: Fri, 8 Dec 2023 03:53:24 +0000 Subject: [PATCH] community/git-warp-time: upgrade to 0.6.1 --- community/git-warp-time/APKBUILD | 9 ++++--- community/git-warp-time/fix-doctest.patch | 33 +++++++++++++++++++++++ 2 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 community/git-warp-time/fix-doctest.patch diff --git a/community/git-warp-time/APKBUILD b/community/git-warp-time/APKBUILD index ca775525059..f7db0a4049d 100644 --- a/community/git-warp-time/APKBUILD +++ b/community/git-warp-time/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Michał Polański # Maintainer: Michał Polański pkgname=git-warp-time -pkgver=0.5.2 +pkgver=0.6.1 pkgrel=0 pkgdesc="Reset timestamps of Git repository files to the time of the last modifying commit" url="https://github.com/alerque/git-warp-time" @@ -10,7 +10,9 @@ arch="all" makedepends="cargo cargo-auditable" subpackages="$pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion" options="net" -source="https://github.com/alerque/git-warp-time/archive/v$pkgver/git-warp-time-$pkgver.tar.gz" +source="https://github.com/alerque/git-warp-time/archive/v$pkgver/git-warp-time-$pkgver.tar.gz + fix-doctest.patch + " prepare() { default_prepare @@ -46,5 +48,6 @@ package() { } sha512sums=" -bd16733164251d8ccec1cb52d434c56c3db7d65ad00d1a1340606acf07b3a53c69f4d01dbe182887e97c4b08d92040c3fd82e53670dcc958a6a04249f1fb1ae8 git-warp-time-0.5.2.tar.gz +86a60482415c938b431f3c009b63d2a09276710989d7d1c5747268527a1303c6709789581ca932ba285f475b1632457e68bd78b1456d7fab9711558a5e54fc82 git-warp-time-0.6.1.tar.gz +e88ba011e5cdf06415652652a9944388eec701f152508c65d720a33ed3fec75b3e74f6f2d038c502aa777e9109feb79c25689ae28fd431ff0f24b065c46916c5 fix-doctest.patch " diff --git a/community/git-warp-time/fix-doctest.patch b/community/git-warp-time/fix-doctest.patch new file mode 100644 index 00000000000..27d6c2949ab --- /dev/null +++ b/community/git-warp-time/fix-doctest.patch @@ -0,0 +1,33 @@ +Patch-Source: https://github.com/alerque/git-warp-time/commit/da9d375a9eb8ef4f720ecd687d2ec89a86621e65.patch +-- +From da9d375a9eb8ef4f720ecd687d2ec89a86621e65 Mon Sep 17 00:00:00 2001 +From: Caleb Maclennan +Date: Thu, 7 Dec 2023 17:24:41 +0300 +Subject: [PATCH] docs: Update docs with recent API change + +--- + README.md | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/README.md b/README.md +index f95e47d..9ac6485 100644 +--- a/README.md ++++ b/README.md +@@ -52,7 +52,7 @@ git-warp-time = "0.5" + Then use the crate functions and types in your project something like this: + + ```rust +-use git_warp_time::{get_repo, reset_mtime}; ++use git_warp_time::{get_repo, reset_mtimes}; + use git_warp_time::{FileSet, Options}; + + fn main() { +@@ -61,7 +61,7 @@ fn main() { + paths.insert("foo.txt".to_string()); + let mut opts = Options::new(); + opts.verbose(true).paths(Some(paths)); +- let files = reset_mtime(repo, opts).unwrap(); ++ let files = reset_mtimes(repo, opts).unwrap(); + println!("Actioned files: {:?}", files); + } + ```