add alpm-package mime type

This commit is contained in:
guinux 2014-11-01 17:59:16 +01:00
parent fe929692ce
commit acaf52d5ae
5 changed files with 42 additions and 36 deletions

View File

@ -128,4 +128,4 @@ Type=Application
Icon=system-software-install Icon=system-software-install
StartupNotify=true StartupNotify=true
NoDisplay=true NoDisplay=true
MimeType=application/x-xz-compressed-tar; MimeType=application/x-alpm-package;

View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-alpm-package">
<generic-icon name="package-x-generic"/>
<comment>Alpm Package</comment>
<glob pattern="*.pkg.tar.xz"/>
</mime-type>
</mime-info>

View File

@ -21,7 +21,6 @@ msgstr ""
msgid "Authentication is required" msgid "Authentication is required"
msgstr "" msgstr ""
#: resources/choose_provider_dialog.ui:7 #: resources/choose_provider_dialog.ui:7
msgid "Choose a Provider" msgid "Choose a Provider"
msgstr "" msgstr ""
@ -91,7 +90,7 @@ msgstr ""
msgid "Search" msgid "Search"
msgstr "" msgstr ""
#: resources/manager_window.ui:279 src/manager_window.vala:337 #: resources/manager_window.ui:279 src/manager_window.vala:339
msgid "Groups" msgid "Groups"
msgstr "" msgstr ""
@ -111,7 +110,7 @@ msgstr ""
msgid "Version" msgid "Version"
msgstr "" msgstr ""
#: resources/manager_window.ui:463 src/manager_window.vala:329 #: resources/manager_window.ui:463 src/manager_window.vala:331
msgid "Repository" msgid "Repository"
msgstr "" msgstr ""
@ -187,7 +186,7 @@ msgid "Options"
msgstr "" msgstr ""
#: src/packages_chooser_dialog.vala:32 #: src/packages_chooser_dialog.vala:32
msgid "Packages" msgid "Alpm Package"
msgstr "" msgstr ""
#: src/daemon.vala:64 #: src/daemon.vala:64
@ -273,8 +272,8 @@ msgstr ""
msgid "Choose a provider for %s" msgid "Choose a provider for %s"
msgstr "" msgstr ""
#: src/transaction.vala:389 src/manager_window.vala:188 #: src/transaction.vala:389 src/manager_window.vala:190
#: src/manager_window.vala:731 #: src/manager_window.vala:739
msgid "To remove" msgid "To remove"
msgstr "" msgstr ""
@ -286,8 +285,8 @@ msgstr ""
msgid "To build" msgid "To build"
msgstr "" msgstr ""
#: src/transaction.vala:428 src/manager_window.vala:187 #: src/transaction.vala:428 src/manager_window.vala:189
#: src/manager_window.vala:720 #: src/manager_window.vala:728
msgid "To install" msgid "To install"
msgstr "" msgstr ""
@ -460,88 +459,88 @@ msgstr ""
msgid "Show available updates" msgid "Show available updates"
msgstr "" msgstr ""
#: src/manager_window.vala:180 src/manager_window.vala:777 #: src/manager_window.vala:182 src/manager_window.vala:785
msgid "local" msgid "local"
msgstr "" msgstr ""
#: src/manager_window.vala:184 src/manager_window.vala:251 #: src/manager_window.vala:186 src/manager_window.vala:253
#: src/manager_window.vala:263 src/manager_window.vala:737 #: src/manager_window.vala:265 src/manager_window.vala:745
msgid "Installed" msgid "Installed"
msgstr "" msgstr ""
#: src/manager_window.vala:186 src/manager_window.vala:751 #: src/manager_window.vala:188 src/manager_window.vala:759
msgid "Orphans" msgid "Orphans"
msgstr "" msgstr ""
#: src/manager_window.vala:211 #: src/manager_window.vala:213
msgid "Licenses" msgid "Licenses"
msgstr "" msgstr ""
#: src/manager_window.vala:233 #: src/manager_window.vala:235
msgid "Depends On" msgid "Depends On"
msgstr "" msgstr ""
#: src/manager_window.vala:253 #: src/manager_window.vala:255
msgid "Optional Dependencies" msgid "Optional Dependencies"
msgstr "" msgstr ""
#: src/manager_window.vala:273 #: src/manager_window.vala:275
msgid "Required By" msgid "Required By"
msgstr "" msgstr ""
#: src/manager_window.vala:287 #: src/manager_window.vala:289
msgid "Provides" msgid "Provides"
msgstr "" msgstr ""
#: src/manager_window.vala:300 #: src/manager_window.vala:302
msgid "Replaces" msgid "Replaces"
msgstr "" msgstr ""
#: src/manager_window.vala:313 #: src/manager_window.vala:315
msgid "Conflicts With" msgid "Conflicts With"
msgstr "" msgstr ""
#: src/manager_window.vala:347 #: src/manager_window.vala:349
msgid "Packager" msgid "Packager"
msgstr "" msgstr ""
#: src/manager_window.vala:353 #: src/manager_window.vala:355
msgid "Install Date" msgid "Install Date"
msgstr "" msgstr ""
#: src/manager_window.vala:357 #: src/manager_window.vala:359
msgid "Explicitly installed" msgid "Explicitly installed"
msgstr "" msgstr ""
#: src/manager_window.vala:359 #: src/manager_window.vala:361
msgid "Installed as a dependency for another package" msgid "Installed as a dependency for another package"
msgstr "" msgstr ""
#: src/manager_window.vala:361 #: src/manager_window.vala:363
msgid "Unknown" msgid "Unknown"
msgstr "" msgstr ""
#: src/manager_window.vala:363 #: src/manager_window.vala:365
msgid "Install Reason" msgid "Install Reason"
msgstr "" msgstr ""
#: src/manager_window.vala:368 #: src/manager_window.vala:370
msgid "Signatures" msgid "Signatures"
msgstr "" msgstr ""
#: src/manager_window.vala:376 #: src/manager_window.vala:378
msgid "Backup files" msgid "Backup files"
msgstr "" msgstr ""
#: src/manager_window.vala:497 #: src/manager_window.vala:499
msgid "No package found" msgid "No package found"
msgstr "" msgstr ""
#: src/manager_window.vala:739 #: src/manager_window.vala:747
msgid "Uninstalled" msgid "Uninstalled"
msgstr "" msgstr ""
#: src/manager_window.vala:888 #: src/manager_window.vala:896
msgid "A Gtk3 frontend for libalpm" msgid "A Gtk3 frontend for libalpm"
msgstr "" msgstr ""

View File

@ -29,8 +29,7 @@ namespace Pamac {
Object (transient_for: window, use_header_bar: 0); Object (transient_for: window, use_header_bar: 0);
Gtk.FileFilter package_filter = new Gtk.FileFilter (); Gtk.FileFilter package_filter = new Gtk.FileFilter ();
package_filter.set_filter_name (dgettext (null, "Packages")); package_filter.set_filter_name (dgettext (null, "Alpm Package"));
package_filter.add_pattern ("*.pkg.tar.gz");
package_filter.add_pattern ("*.pkg.tar.xz"); package_filter.add_pattern ("*.pkg.tar.xz");
this.add_filter (package_filter); this.add_filter (package_filter);

View File

@ -647,7 +647,7 @@ namespace Pamac {
case Event.SCRIPTLET_INFO: case Event.SCRIPTLET_INFO:
progress_dialog.action_label.set_text (dgettext (null, "Configuring %s").printf (previous_filename) + "..."); progress_dialog.action_label.set_text (dgettext (null, "Configuring %s").printf (previous_filename) + "...");
progress_dialog.expander.set_expanded (true); progress_dialog.expander.set_expanded (true);
spawn_in_term ({"/usr/bin/echo", details[0]}); spawn_in_term ({"/usr/bin/echo", "-n", details[0]});
break; break;
case Event.RETRIEVE_START: case Event.RETRIEVE_START:
progress_dialog.cancel_button.set_visible (true); progress_dialog.cancel_button.set_visible (true);
@ -755,11 +755,11 @@ namespace Pamac {
string? line = null; string? line = null;
TextIter end_iter; TextIter end_iter;
if ((Alpm.LogLevel) level == Alpm.LogLevel.WARNING) { if ((Alpm.LogLevel) level == Alpm.LogLevel.WARNING) {
line = dgettext (null, "Warning") + ": " + msg; line = dgettext (null, "Warning") + ": " + previous_filename + ": " + msg;
transaction_info_dialog.textbuffer.get_end_iter (out end_iter); transaction_info_dialog.textbuffer.get_end_iter (out end_iter);
transaction_info_dialog.textbuffer.insert (ref end_iter, msg, msg.length); transaction_info_dialog.textbuffer.insert (ref end_iter, msg, msg.length);
} else if ((Alpm.LogLevel) level == Alpm.LogLevel.ERROR) { } else if ((Alpm.LogLevel) level == Alpm.LogLevel.ERROR) {
line = dgettext (null, "Error") + ": " + msg; line = dgettext (null, "Error") + ": " + previous_filename + ": " + msg;
} }
if (line != null) { if (line != null) {
progress_dialog.expander.set_expanded (true); progress_dialog.expander.set_expanded (true);