From: paper42 <paper42@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] gnome-software: don't open irrelevant mimetypes
Date: Wed, 31 Aug 2022 22:32:19 +0200 [thread overview]
Message-ID: <20220831203219.ItIHUrr8v6UM3bVsf2jJxuq_tgf89labx47vtMLMbdg@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-38895@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 1431 bytes --]
There is an updated pull request by paper42 against master on the void-packages repository
https://github.com/paper42/void-packages gnome-software-no-rpms
https://github.com/void-linux/void-packages/pull/38895
gnome-software: don't open irrelevant mimetypes
The gnome-software package can only be used for flatpaks, opening rpms,
debs and other package archives will only result in an error message.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **NO** (todo)
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/38895.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnome-software-no-rpms-38895.patch --]
[-- Type: text/x-diff, Size: 1967 bytes --]
From 1ee2f4557092271fd8a88a34899f1b4d59408d90 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Wed, 24 Aug 2022 23:19:53 +0200
Subject: [PATCH] gnome-software: don't open unsupported mimetypes
The gnome-software package can only be used for flatpaks, opening rpms,
debs and other package archives will only result in an error message.
---
.../patches/0001-only-associate-flatpak-mimetypes.patch | 8 ++++++++
srcpkgs/gnome-software/template | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/gnome-software/patches/0001-only-associate-flatpak-mimetypes.patch
diff --git a/srcpkgs/gnome-software/patches/0001-only-associate-flatpak-mimetypes.patch b/srcpkgs/gnome-software/patches/0001-only-associate-flatpak-mimetypes.patch
new file mode 100644
index 000000000000..63c2b3aa2232
--- /dev/null
+++ b/srcpkgs/gnome-software/patches/0001-only-associate-flatpak-mimetypes.patch
@@ -0,0 +1,8 @@
+--- a/src/gnome-software-local-file.desktop.in
++++ b/src/gnome-software-local-file.desktop.in
+@@ -9,4 +9,4 @@ Type=Application
+ Icon=system-software-install
+ StartupNotify=true
+ NoDisplay=true
+-MimeType=application/x-rpm;application/x-redhat-package-manager;application/x-deb;application/x-app-package;application/vnd.ms-cab-compressed;application/vnd.flatpak;application/vnd.flatpak.repo;application/vnd.flatpak.ref;application/vnd.snap;
++MimeType=application/vnd.flatpak;application/vnd.flatpak.repo;application/vnd.flatpak.ref
diff --git a/srcpkgs/gnome-software/template b/srcpkgs/gnome-software/template
index 09fb89a4fdd1..4d21ca5c05a7 100644
--- a/srcpkgs/gnome-software/template
+++ b/srcpkgs/gnome-software/template
@@ -1,7 +1,7 @@
# Template file for 'gnome-software'
pkgname=gnome-software
version=42.4
-revision=1
+revision=2
build_style=meson
configure_args="-Dvalgrind=false -Dpackagekit=false -Dfwupd=false
-Dmalcontent=false $(vopt_bool gtk_doc) -Dsoup2=true"
next prev parent reply other threads:[~2022-08-31 20:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-24 21:23 [PR PATCH] " paper42
2022-08-31 20:32 ` paper42 [this message]
2022-08-31 20:32 ` [PR PATCH] [Merged]: " paper42
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220831203219.ItIHUrr8v6UM3bVsf2jJxuq_tgf89labx47vtMLMbdg@z \
--to=paper42@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).