]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
packit: drop the 'sources' file after cloning the Fedora repo
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 12 Apr 2021 15:56:33 +0000 (17:56 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 12 Apr 2021 16:10:04 +0000 (18:10 +0200)
Otherwise rebase-helper thinks we're are a dist-git repository,
replacing the generated git archive with PR changes with the tarball
found in the 'sources' file.

.packit.yml

index 75f9d3abc9c3eebf93d4611a0a673e4f6cd57eab..4545e30e0867d81889333b473bcfba427e557ca9 100644 (file)
@@ -18,6 +18,8 @@ actions:
   post-upstream-clone:
     # Use the Fedora Rawhide specfile
     - "git clone https://src.fedoraproject.org/rpms/systemd .packit_rpm --depth=1"
+    # Drop the "sources" file so rebase-helper doesn't think we're a dist-git
+    - "rm -fv .packit_rpm/sources"
     # Drop backported patches from the specfile, but keep the downstream-only ones
     # - Patch0000-0499: backported patches from upstream
     # - Patch0500-9999: downstream-only patches