Commit bb524b64 authored by guinux's avatar guinux

update alpm-package mime-type

parent a9315298
......@@ -5,6 +5,13 @@
<comment>Alpm Package</comment>
<glob pattern="*.pkg.tar.xz"/>
<glob pattern="*.pkg.tar.gz"/>
<glob pattern="*.pkg.tar.zst"/>
<glob pattern="*.pkg.tar.bz2"/>
<glob pattern="*.pkg.tar.lrz"/>
<glob pattern="*.pkg.tar.lzo"/>
<glob pattern="*.pkg.tar.z"/>
<glob pattern="*.pkg.tar.lz4"/>
<glob pattern="*.pkg.tar.lz"/>
<glob pattern="*.pkg.tar"/>
</mime-type>
</mime-info>
......@@ -3242,9 +3242,7 @@ namespace Pamac {
chooser.create_folders = false;
Gtk.FileFilter package_filter = new Gtk.FileFilter ();
package_filter.set_filter_name (dgettext (null, "Alpm Package"));
package_filter.add_pattern ("*.pkg.tar.xz");
package_filter.add_pattern ("*.pkg.tar.gz");
package_filter.add_pattern ("*.pkg.tar");
package_filter.add_mime_type ("application/x-alpm-package");
chooser.add_filter (package_filter);
if (chooser.run () == Gtk.ResponseType.ACCEPT) {
SList<string> packages_paths = chooser.get_filenames ();
......
......@@ -595,7 +595,7 @@ namespace Pamac {
// creating a DataOutputStream to the file
var dos = new DataOutputStream (fos);
// fake filename
dos.put_string ("%FILENAME%\n" + "%s-%s-any.pkg.tar.xz\n\n".printf (pkgname_found, aur_pkg.version));
dos.put_string ("%FILENAME%\n" + "%s-%s-any.pkg.tar\n\n".printf (pkgname_found, aur_pkg.version));
// name
dos.put_string ("%NAME%\n%s\n\n".printf (pkgname_found));
// version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment