Hello community, here is the log from the commit of package imageburner for openSUSE:Factory checked in at 2018-08-10 09:50:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/imageburner (Old) and /work/SRC/openSUSE:Factory/.imageburner.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "imageburner" Fri Aug 10 09:50:42 2018 rev:6 rq:628284 version:0.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/imageburner/imageburner.changes 2018-04-16 12:49:41.347584380 +0200 +++ /work/SRC/openSUSE:Factory/.imageburner.new/imageburner.changes 2018-08-10 09:50:43.414361418 +0200 @@ -1,0 +2,8 @@ +Wed Aug 1 21:25:58 UTC 2018 - [email protected] + +- Update to 0.2.0: + * update appdata +- Switch to metainfo from appdata +- Remove obsolete macros + +------------------------------------------------------------------- Old: ---- imageburner-0.1.15.tar.gz New: ---- imageburner-0.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ imageburner.spec ++++++ --- /var/tmp/diff_new_pack.cf3y0l/_old 2018-08-10 09:50:44.154362612 +0200 +++ /var/tmp/diff_new_pack.cf3y0l/_new 2018-08-10 09:50:44.158362618 +0200 @@ -1,7 +1,7 @@ # # spec file for package imageburner # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,10 +17,10 @@ Name: imageburner -Version: 0.1.15 +Version: 0.2.0 Release: 0 Summary: Image burner -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Hardware/Other URL: https://github.com/artemanufrij/imageburner Source: https://github.com/artemanufrij/imageburner/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz @@ -32,7 +32,7 @@ BuildRequires: pkgconfig BuildRequires: update-desktop-files BuildRequires: vala -BuildRequires: pkgconfig(granite) +BuildRequires: pkgconfig(granite) >= 0.5 Recommends: %{name}-lang %description @@ -54,32 +54,21 @@ %install %cmake_install -mkdir -p %{buildroot}%{_datadir}/appdata mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps -mv %{buildroot}%{_datadir}/{metainfo,appdata}/com.github.artemanufrij.imageburner.appdata.xml mv %{buildroot}%{_datadir}/icons/hicolor/{,scalable/apps/}com.github.artemanufrij.imageburner.svg %suse_update_desktop_file -r com.github.artemanufrij.imageburner GTK System Utility Archiving %find_lang com.github.artemanufrij.imageburner %{name}.lang %fdupes %{buildroot}/%{_datadir} -%post -%desktop_database_post -%icon_theme_cache_post - -%postun -%desktop_database_postun -%icon_theme_cache_postun - %files -%doc COPYING README.md +%license COPYING +%doc README.md %{_bindir}/com.github.artemanufrij.imageburner -%dir %{_datadir}/appdata -%{_datadir}/appdata/com.github.artemanufrij.imageburner.appdata.xml %{_datadir}/applications/com.github.artemanufrij.imageburner.desktop -%dir %{_datadir}/contractor -%{_datadir}/contractor/com.github.artemanufrij.imageburner.contract +%{_datadir}/contractor/ %{_datadir}/icons/hicolor/*/apps/*imageburner*.??g +%{_datadir}/metainfo/com.github.artemanufrij.imageburner.appdata.xml %files lang -f %{name}.lang ++++++ imageburner-0.1.15.tar.gz -> imageburner-0.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imageburner-0.1.15/.travis.yml new/imageburner-0.2.0/.travis.yml --- old/imageburner-0.1.15/.travis.yml 2018-03-29 21:03:41.000000000 +0200 +++ new/imageburner-0.2.0/.travis.yml 2018-07-22 20:18:13.000000000 +0200 @@ -1,12 +1,34 @@ - sudo: required - language: generic +--- - services: - - docker +language: node_js - script: - - wget -O- https://raw.githubusercontent.com/harisvsulaiman/element-build/master/script.sh | sh - +node_js: + - lts/* - branches: - except: - - /^debian\/\d/ +sudo: required + +services: + - docker + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - libstdc++-5-dev + +cache: + directories: + - /tmp/liftoff + +matrix: + include: + - env: DIST=loki + - env: DIST=juno + +install: + - npm install @elementaryos/houston + +script: + - houston ci + --distribution $DIST \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imageburner-0.1.15/data/com.github.artemanufrij.imageburner.appdata.xml new/imageburner-0.2.0/data/com.github.artemanufrij.imageburner.appdata.xml --- old/imageburner-0.1.15/data/com.github.artemanufrij.imageburner.appdata.xml 2018-03-29 21:03:41.000000000 +0200 +++ new/imageburner-0.2.0/data/com.github.artemanufrij.imageburner.appdata.xml 2018-07-22 20:18:13.000000000 +0200 @@ -28,6 +28,19 @@ </screenshot> </screenshots> <releases> + <release version="0.2.0" date="2018-07-24"> + <description> + Prepare for JUNO + </description> + </release> + <release version="0.1.16" date="2018-04-15"> + <description> + <p>Fixed:</p> + <ul> + <li>Wording while writing an iso.</li> + </ul> + </description> + </release> <release version="0.1.15" date="2018-03-30"> <description> <p>Translation:</p> @@ -101,4 +114,33 @@ </description> </release> </releases> + <content_rating type="oars-1.1"> + <content_attribute id="violence-cartoon">none</content_attribute> + <content_attribute id="violence-fantasy">none</content_attribute> + <content_attribute id="violence-realistic">none</content_attribute> + <content_attribute id="violence-bloodshed">none</content_attribute> + <content_attribute id="violence-sexual">none</content_attribute> + <content_attribute id="violence-desecration">none</content_attribute> + <content_attribute id="violence-slavery">none</content_attribute> + <content_attribute id="violence-worship">none</content_attribute> + <content_attribute id="drugs-alcohol">none</content_attribute> + <content_attribute id="drugs-narcotics">none</content_attribute> + <content_attribute id="drugs-tobacco">none</content_attribute> + <content_attribute id="sex-nudity">none</content_attribute> + <content_attribute id="sex-themes">none</content_attribute> + <content_attribute id="sex-homosexuality">none</content_attribute> + <content_attribute id="sex-prostitution">none</content_attribute> + <content_attribute id="sex-adultery">none</content_attribute> + <content_attribute id="sex-appearance">none</content_attribute> + <content_attribute id="language-profanity">none</content_attribute> + <content_attribute id="language-humor">none</content_attribute> + <content_attribute id="language-discrimination">none</content_attribute> + <content_attribute id="social-chat">none</content_attribute> + <content_attribute id="social-info">none</content_attribute> + <content_attribute id="social-audio">none</content_attribute> + <content_attribute id="social-location">none</content_attribute> + <content_attribute id="social-contacts">none</content_attribute> + <content_attribute id="money-purchasing">none</content_attribute> + <content_attribute id="money-gambling">none</content_attribute> + </content_rating> </component> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imageburner-0.1.15/po/com.github.artemanufrij.imageburner.pot new/imageburner-0.2.0/po/com.github.artemanufrij.imageburner.pot --- old/imageburner-0.1.15/po/com.github.artemanufrij.imageburner.pot 2018-03-29 21:03:41.000000000 +0200 +++ new/imageburner-0.2.0/po/com.github.artemanufrij.imageburner.pot 2018-07-22 20:18:13.000000000 +0200 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-12-05 21:22+0100\n" +"POT-Creation-Date: 2018-04-01 13:12+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" @@ -21,23 +21,31 @@ msgid "Change" msgstr "" -#: ../src/MainWindow.vala:70 ../src/MainWindow.vala:332 +#: ../src/MainWindow.vala:70 ../src/MainWindow.vala:335 msgid "Open" msgstr "" -#: ../src/MainWindow.vala:97 ../src/MainWindow.vala:260 +#: ../src/MainWindow.vala:97 ../src/MainWindow.vala:256 msgid "Device" msgstr "" -#: ../src/MainWindow.vala:120 +#: ../src/MainWindow.vala:124 msgid "Calculating checksum…" msgstr "" -#: ../src/MainWindow.vala:148 +#: ../src/MainWindow.vala:144 +msgid "please wait…" +msgstr "" + +#: ../src/MainWindow.vala:156 ../src/MainWindow.vala:422 +msgid "Ready!" +msgstr "" + +#: ../src/MainWindow.vala:158 msgid "%s was written onto %s" msgstr "" -#: ../src/MainWindow.vala:186 +#: ../src/MainWindow.vala:185 msgid "Image Burner" msgstr "" @@ -45,58 +53,54 @@ msgid "Choose an algorithm" msgstr "" -#: ../src/MainWindow.vala:207 +#: ../src/MainWindow.vala:211 msgid "Finished" msgstr "" -#: ../src/MainWindow.vala:232 +#: ../src/MainWindow.vala:228 msgid "Image" msgstr "" -#: ../src/MainWindow.vala:240 +#: ../src/MainWindow.vala:236 msgid "Select Image" msgstr "" -#: ../src/MainWindow.vala:274 +#: ../src/MainWindow.vala:270 msgid "Select Drive" msgstr "" -#: ../src/MainWindow.vala:282 ../src/MainWindow.vala:404 +#: ../src/MainWindow.vala:279 ../src/MainWindow.vala:412 msgid "No removable devices found…" msgstr "" -#: ../src/MainWindow.vala:307 +#: ../src/MainWindow.vala:308 msgid "Flash" msgstr "" -#: ../src/MainWindow.vala:315 +#: ../src/MainWindow.vala:318 msgid "Write Image" msgstr "" -#: ../src/MainWindow.vala:334 +#: ../src/MainWindow.vala:337 msgid "_Cancel" msgstr "" -#: ../src/MainWindow.vala:335 +#: ../src/MainWindow.vala:338 msgid "_Open" msgstr "" -#: ../src/MainWindow.vala:338 +#: ../src/MainWindow.vala:341 msgid "Image files" msgstr "" -#: ../src/MainWindow.vala:396 +#: ../src/MainWindow.vala:404 msgid "Choose an image file…" msgstr "" -#: ../src/MainWindow.vala:410 +#: ../src/MainWindow.vala:418 msgid "No image file chosen…" msgstr "" -#: ../src/MainWindow.vala:412 +#: ../src/MainWindow.vala:420 msgid "No device chosen…" msgstr "" - -#: ../src/MainWindow.vala:414 -msgid "Ready!" -msgstr "" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imageburner-0.1.15/src/MainWindow.vala new/imageburner-0.2.0/src/MainWindow.vala --- old/imageburner-0.1.15/src/MainWindow.vala 2018-03-29 21:03:41.000000000 +0200 +++ new/imageburner-0.2.0/src/MainWindow.vala 2018-07-22 20:18:13.000000000 +0200 @@ -141,6 +141,7 @@ hash_chooser.sensitive = false; burning.active = true; start_logo.opacity = 0; + flash_label.label = _ ("please wait…"); }); burner.finished.connect ( () => { @@ -152,6 +153,7 @@ hash_chooser.sensitive = true; burning.active = false; start_logo.opacity = 1; + flash_label.label = _ ("Ready!"); var message = _ ("%s was written onto %s").printf (selected_image.get_basename (), selected_device.drive.get_name ()); @@ -363,7 +365,12 @@ } private void device_added (GLib.Drive drive) { - debug ("Add device into list"); + foreach (var child in this.device_list.get_children ()) { + if ((child as Device).unix_device == drive.get_identifier ("unix-device")) { + return; + } + } + var item = new Imageburner.Device (drive); this.selected_device = item; this.device_list.add (item); @@ -376,7 +383,7 @@ debug ("Remove device from list"); foreach (var child in this.device_list.get_children ()) { if ((child as Device).drive == drive) { - this.device_list.remove (child); + child.destroy (); } } if (selected_device != null && selected_device.drive == drive) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imageburner-0.1.15/src/Manager/DeviceManager.vala new/imageburner-0.2.0/src/Manager/DeviceManager.vala --- old/imageburner-0.1.15/src/Manager/DeviceManager.vala 2018-03-29 21:03:41.000000000 +0200 +++ new/imageburner-0.2.0/src/Manager/DeviceManager.vala 2018-07-22 20:18:13.000000000 +0200 @@ -48,15 +48,31 @@ construct { monitor = GLib.VolumeMonitor.get (); - monitor.drive_connected.connect ((drive) => { - if (valid_device (drive)) { - drive_connected (drive); - } - }); + monitor.drive_connected.connect ( + (drive) => { + if (valid_device (drive)) { + drive_connected (drive); + } + }); + + monitor.drive_disconnected.connect ( + (drive) => { + drive_disconnected (drive); + }); + + monitor.volume_added.connect ( + (volume) => { + if (valid_device (volume.get_drive ())) { + drive_connected (volume.get_drive ()); + } + }); - monitor.drive_disconnected.connect ((drive) => { - drive_disconnected (drive); - }); + monitor.volume_removed.connect ( + (volume) => { + if (volume.get_drive () != null) { + drive_disconnected (volume.get_drive ()); + } + }); } public void init () { @@ -69,8 +85,9 @@ } private bool valid_device (Drive drive) { - string? unix_device = drive.get_identifier ("unix-device"); - return (drive.is_media_removable () || drive.can_stop ()) && (unix_device != null && (unix_device.index_of ("/dev/sd") == 0 || unix_device.index_of ("/dev/mmc") == 0)); + string ? unix_device = drive.get_identifier ("unix-device"); + stdout.printf ("%s removable: %s; can stop: %s\n", unix_device, drive.is_media_removable ().to_string (), drive.can_stop ().to_string ()); + return (drive.is_media_removable () || drive.can_stop ()) && drive.has_media () && (unix_device != null && (unix_device.has_prefix ("/dev/sd") || unix_device.has_prefix ("/dev/mmc") || unix_device.has_prefix ("/dev/nvm"))); } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imageburner-0.1.15/src/Objects/DiskBurner.vala new/imageburner-0.2.0/src/Objects/DiskBurner.vala --- old/imageburner-0.1.15/src/Objects/DiskBurner.vala 2018-03-29 21:03:41.000000000 +0200 +++ new/imageburner-0.2.0/src/Objects/DiskBurner.vala 2018-07-22 20:18:13.000000000 +0200 @@ -66,7 +66,7 @@ string if_arg = "if=" + image.get_path (); string of_arg = "of=" + drive.get_identifier ("unix-device"); - string[] spawn_args = {"pkexec", "dd", if_arg, of_arg, "bs=4M", "conv=sync", "status=progress"}; + string[] spawn_args = {"pkexec", "dd", if_arg, of_arg, "bs=4M"}; string[] spawn_env = Environ.get (); try { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/imageburner-0.1.15/src/Widgets/Device.vala new/imageburner-0.2.0/src/Widgets/Device.vala --- old/imageburner-0.1.15/src/Widgets/Device.vala 2018-03-29 21:03:41.000000000 +0200 +++ new/imageburner-0.2.0/src/Widgets/Device.vala 2018-07-22 20:18:13.000000000 +0200 @@ -33,6 +33,7 @@ Gtk.Label title; public GLib.Drive drive { get; private set; } + public string unix_device { get; private set; } construct { content = new Gtk.Grid (); @@ -43,6 +44,7 @@ public Device (GLib.Drive d) { this.drive = d; + this.unix_device = d.get_identifier ("unix-device"); icon = get_medium_icon (); icon.margin = 6; @@ -55,15 +57,11 @@ // PROPERTIES public bool is_card { get { - string unix_device = drive.get_identifier ("unix-device"); - return unix_device.index_of ("/dev/mmc") == 0; + return unix_device.has_prefix ("/dev/mmc"); } } // METHODS - public string get_unix_device () { - return drive.get_identifier ("unix-device"); - } public Gtk.Image get_medium_icon () { if (is_card) {
