ci: Make Packit ignore downstream patches
authorJonathan Lebon <jonathan@jlebon.com>
Wed, 7 Oct 2020 19:04:17 +0000 (15:04 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Wed, 7 Oct 2020 19:04:17 +0000 (15:04 -0400)
We don't really carry "Fedora-only" patches in dist-git. So we want to
nuke all the patches which exist there.

Follow-up to #2210.

.packit.yaml

index 0aec81ed233a21b8a37d97a83d673ce49ec4df48..ebfe564886351a831c70078e7477a0b170b3252c 100644 (file)
@@ -8,4 +8,7 @@ jobs:
 specfile_path: ostree.spec
 actions:
     # https://packit.dev/faq/#how-can-i-download-rpm-spec-file-if-it-is-not-part-of-upstream-repository
-    post-upstream-clone: "wget https://src.fedoraproject.org/rpms/ostree/raw/master/f/ostree.spec"
+    post-upstream-clone:
+        - "wget https://src.fedoraproject.org/rpms/ostree/raw/master/f/ostree.spec"
+        # we don't want any downstream patches
+        - "sed -ie 's/^Patch/# Patch/g' ostree.spec"