Skip to content

Commit

Permalink
remove more unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
bkw777 committed Jan 14, 2020
1 parent 73c60bc commit e88e46e
Show file tree
Hide file tree
Showing 24 changed files with 408 additions and 485 deletions.
2 changes: 1 addition & 1 deletion BRANDING.mak
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

VERSION_MAJOR = 1
VERSION_MINOR = 0
VERSION_MICRO = 4
VERSION_MICRO = 5
BRANDING_SHORTNAME = mainline
BRANDING_LONGNAME = Ubuntu Mainline Kernel Installer
BRANDING_AUTHORNAME = Brian K. White
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ misc_files := README.md \
INSTALL \
$(BRANDING_SHORTNAME).desktop \
debian/control \
debian/copyright
debian/copyright \
# share/polkit-1/actions/$(BRANDING_SHORTNAME).policy

common_vala_files := src/Common/*.vala src/Utility/*.vala
Expand Down Expand Up @@ -80,6 +80,7 @@ $(misc_files): %: %.src BRANDING.mak
-e ';s/BRANDING_VERSION/$(BRANDING_VERSION)/g' \
-e ';s|BRANDING_GITREPO|$(BRANDING_GITREPO)|g' \
$(@).src >$(@)
# -e ';s|DEST_BIN_DIR|$(DESTDIR)$(bindir)|g'

$(pot_file): $(misc_files) $(common_vala_files) $(tui_vala_files) $(gui_vala_files)
find . -iname "*.vala" -print0 | xargs -0 xgettext --from-code=UTF-8 --language=C --keyword=_ \
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ Populating the main window fails, but works if you just do it again.
Determining what is currently installed & running fails, but works if you just do it again
...that is really kind of inexcusable crap and could all be a lot better.
* More careful temp file / temp working dir management.
It does avoidable dumb things like creating dirs/files as one user and then can't remove or use them later as another user.
It does avoidable dumb things like creating dirs/files as one user and then can't remove or use them later as another user.
Maybe do clean_cache() after every action?
https://github.com/joshuadowding/ukuu/commit/ca03723a7a542cd591246a0f6d6a62bad4fac57c
* Maybe replace the entire thing with a bash script, maybe with zenity for an optional gui?
https://github.com/pimlie/ubuntu-mainline-kernel.sh
4 changes: 3 additions & 1 deletion README.md.src
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ Populating the main window fails, but works if you just do it again.
Determining what is currently installed & running fails, but works if you just do it again
...that is really kind of inexcusable crap and could all be a lot better.
* More careful temp file / temp working dir management.
It does avoidable dumb things like creating dirs/files as one user and then can't remove or use them later as another user.
It does avoidable dumb things like creating dirs/files as one user and then can't remove or use them later as another user.
Maybe do clean_cache() after every action?
https://github.com/joshuadowding/ukuu/commit/ca03723a7a542cd591246a0f6d6a62bad4fac57c
* Maybe replace the entire thing with a bash script, maybe with zenity for an optional gui?
https://github.com/pimlie/ubuntu-mainline-kernel.sh
2 changes: 1 addition & 1 deletion mainline.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ GenericName=Ubuntu Mainline Kernel Installer
Terminal=false
Icon=mainline
Comment=Ubuntu Mainline Kernel Installer
X-KDE-StartupNotify=false
StartupNotify=true;
Categories=System;
StartupWMClass=mainline-gtk
2 changes: 1 addition & 1 deletion mainline.desktop.src
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ GenericName=BRANDING_LONGNAME
Terminal=false
Icon=BRANDING_SHORTNAME
Comment=BRANDING_LONGNAME
X-KDE-StartupNotify=false
StartupNotify=true;
Categories=System;
StartupWMClass=BRANDING_SHORTNAME-gtk
76 changes: 38 additions & 38 deletions po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: ukuu\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2020-01-04 00:31-0500\n"
"POT-Creation-Date: 2020-01-14 12:48-0500\n"
"PO-Revision-Date: 2018-01-03 02:03-0600\n"
"Last-Translator: Adolfo Jayme Barrientos <[email protected]>\n"
"Language-Team: Spanish\n"
Expand All @@ -21,7 +21,7 @@ msgstr ""
msgid "About"
msgstr "Acerca de"

#: src/Console/AppConsole.vala:117
#: src/Console/AppConsole.vala:113
msgid "Admin access is required for running this application."
msgstr ""
"Se necesitan privilegios administrativos para ejecutar esta aplicación."
Expand All @@ -39,7 +39,7 @@ msgstr "Arquitectura del sistema"
msgid "Artists"
msgstr "Artistas"

#: src/Console/AppConsole.vala:103
#: src/Console/AppConsole.vala:99
msgid "Assume Yes for all prompts (non-interactive mode)"
msgstr "Asumir Sí para todas las solicitudes (modo no interactivo)"

Expand All @@ -56,7 +56,7 @@ msgstr "Núcleos disponibles"
msgid "Back"
msgstr "Atrás"

#: src/Console/AppConsole.vala:207 src/Gtk/AppGtk.vala:112
#: src/Console/AppConsole.vala:203 src/Gtk/AppGtk.vala:110
msgid "Cache"
msgstr "Cache"

Expand All @@ -74,27 +74,27 @@ msgstr "Cambios"
msgid "Check every"
msgstr "Comprobar cada"

#: src/Console/AppConsole.vala:86
#: src/Console/AppConsole.vala:82
msgid "Check for kernel updates"
msgstr "Buscar actualizaciones del núcleo"

#: src/Console/AppConsole.vala:87
#: src/Console/AppConsole.vala:83
msgid "Check for kernel updates and notify current user"
msgstr "Compruebe las actualizaciones del kernel y notifique al usuario actual"

#: src/Gtk/TerminalWindow.vala:158 src/Utility/Gtk/AboutWindow.vala:295
msgid "Close"
msgstr "Cerrar"

#: src/Console/AppConsole.vala:344
#: src/Console/AppConsole.vala:340
msgid "Command not specified"
msgstr "Coomand no especificado"

#: src/Console/AppConsole.vala:84
#: src/Console/AppConsole.vala:80
msgid "Commands"
msgstr "Comandos"

#: src/Common/Main.vala:105
#: src/Common/Main.vala:107
msgid "Commands listed below are not available on this system"
msgstr ""
"Las órdenes enumeradas a continuación no están disponibles en este sistema"
Expand All @@ -113,7 +113,7 @@ msgstr "Contribuciones"
msgid "Could not find any kernels to remove"
msgstr "Seleccione los núcleos que se desinstalarán"

#: src/Console/AppConsole.vala:312 src/Gtk/MainWindow.vala:100
#: src/Console/AppConsole.vala:308 src/Gtk/MainWindow.vala:100
msgid "Could not find requested version"
msgstr "No se pudo encontrar la versión solicitada"

Expand Down Expand Up @@ -156,7 +156,7 @@ msgstr "Distribución"
msgid "Documenters"
msgstr "Documentadores"

#: src/Console/AppConsole.vala:95
#: src/Console/AppConsole.vala:91
msgid "Download packages for specified kernel"
msgstr "Descargar paquetes del núcleo especificado"

Expand All @@ -174,7 +174,7 @@ msgstr "E"
msgid "ERROR"
msgstr "ERROR"

#: src/Console/AppConsole.vala:102
#: src/Console/AppConsole.vala:98
msgid "Enable verbose debugging output"
msgstr ""

Expand Down Expand Up @@ -277,15 +277,15 @@ msgstr "Instalar"
msgid "Install Linux v%s ? (y/n): "
msgstr ""

#: src/Console/AppConsole.vala:90
#: src/Console/AppConsole.vala:86
msgid "Install latest mainline kernel"
msgstr "Instalar kernel troncal especificado"

#: src/Console/AppConsole.vala:91
#: src/Console/AppConsole.vala:87
msgid "Install latest point update for current series"
msgstr ""

#: src/Console/AppConsole.vala:92
#: src/Console/AppConsole.vala:88
msgid "Install specified mainline kernel"
msgstr "Instalar núcleo troncal especificado"

Expand Down Expand Up @@ -325,25 +325,25 @@ msgid "Kernel upgrade utility for Ubuntu-based distributions"
msgstr ""
"Herramienta de renovación de núcleo para distribuciones basadas en Ubuntu"

#: src/Common/LinuxKernel.vala:788 src/Console/AppConsole.vala:370
#: src/Common/LinuxKernel.vala:788 src/Console/AppConsole.vala:366
#, c-format
msgid "Latest point update"
msgstr ""

#: src/Common/LinuxKernel.vala:777 src/Console/AppConsole.vala:363
#: src/Common/LinuxKernel.vala:777 src/Console/AppConsole.vala:359
#, c-format
msgid "Latest update"
msgstr ""

#: src/Console/AppConsole.vala:88
#: src/Console/AppConsole.vala:84
msgid "List all available mainline kernels"
msgstr "Mostrar todos los núcleos troncales disponibles"

#: src/Gtk/UpdateNotificationWindow.vala:158
msgid "List available kernels"
msgstr "Mostrar núcleos disponibles"

#: src/Console/AppConsole.vala:89
#: src/Console/AppConsole.vala:85
msgid "List installed kernels"
msgstr "Mostrar kernels disponibles"

Expand All @@ -355,7 +355,7 @@ msgstr "Falta el icono"
msgid "Multiple Kernels Selected"
msgstr "Se seleccionaron varios kernels"

#: src/Console/AppConsole.vala:294
#: src/Console/AppConsole.vala:290
msgid "Multiple kernels selected for installation. Select only one."
msgstr "Se seleccionaron varios núcleos para su instalación. Elija solo uno."

Expand All @@ -368,12 +368,12 @@ msgstr "No"
msgid "No Internet"
msgstr "No hay Internet"

#: src/Console/AppConsole.vala:288 src/Console/AppConsole.vala:325
#: src/Console/AppConsole.vala:284 src/Console/AppConsole.vala:321
msgid "No kernels specified"
msgstr ""

#: src/Common/LinuxKernel.vala:796 src/Console/AppConsole.vala:375
#: src/Console/AppConsole.vala:433 src/Gtk/MainWindow.vala:794
#: src/Common/LinuxKernel.vala:796 src/Console/AppConsole.vala:371
#: src/Console/AppConsole.vala:429 src/Gtk/MainWindow.vala:794
msgid "No updates found"
msgstr "No se encontró ninguna actualización"

Expand All @@ -400,15 +400,15 @@ msgstr "Notificar si hay una versión puntual disponible"
msgid "OK"
msgstr "Aceptar"

#: src/Console/AppConsole.vala:99 src/Gtk/AppGtk.vala:183
#: src/Console/AppConsole.vala:95 src/Gtk/AppGtk.vala:181
msgid "Options"
msgstr "Opciones"

#: src/Gtk/SettingsDialog.vala:197
msgid "Other"
msgstr ""

#: src/Console/AppConsole.vala:104
#: src/Console/AppConsole.vala:100
msgid "Override user"
msgstr ""

Expand All @@ -422,15 +422,15 @@ msgstr "Paquetes disponibles"
msgid "Packages Installed"
msgstr "Paquetes instalados"

#: src/Common/Main.vala:106
#: src/Common/Main.vala:108
msgid "Please install required packages and try again"
msgstr "Instale los paquetes requeridos e inténtelo de nuevo"

#: src/Common/LinuxKernel.vala:1305
msgid "Preparing to remove selected kernels"
msgstr "Preparándose para desinstalar los núcleos seleccionados"

#: src/Gtk/AppGtk.vala:185
#: src/Gtk/AppGtk.vala:183
msgid "Print debug information"
msgstr "Mostrar información de depuración"

Expand All @@ -450,24 +450,24 @@ msgstr "Actualizando…"
msgid "Remove"
msgstr "Quitar"

#: src/Console/AppConsole.vala:96 src/Console/AppConsole.vala:101
#: src/Console/AppConsole.vala:92 src/Console/AppConsole.vala:97
msgid "Remove files from application cache"
msgstr "Quitar archivos de la antememoria de la aplicación"

#: src/Console/AppConsole.vala:94 src/Gtk/MainWindow.vala:424
#: src/Console/AppConsole.vala:90 src/Gtk/MainWindow.vala:424
msgid "Remove installed kernels older than running kernel"
msgstr ""

#: src/Console/AppConsole.vala:93
#: src/Console/AppConsole.vala:89
msgid "Remove specified kernel"
msgstr "Quitar el núcleo troncal especificado"

#: src/Console/AppConsole.vala:202 src/Console/AppConsole.vala:316
#: src/Console/AppConsole.vala:345
#: src/Console/AppConsole.vala:198 src/Console/AppConsole.vala:312
#: src/Console/AppConsole.vala:341
msgid "Run '"
msgstr ""

#: src/Console/AppConsole.vala:120
#: src/Console/AppConsole.vala:116
msgid "Run the application as admin with pkexec or sudo."
msgstr "Ejecute la aplicación con permisos administrativos con pkexec o sudo."

Expand Down Expand Up @@ -507,7 +507,7 @@ msgstr "Mostrar"
msgid "Show N previous major versions "
msgstr ""

#: src/Gtk/AppGtk.vala:186
#: src/Gtk/AppGtk.vala:184
msgid "Show all options"
msgstr "Mostrar todas las opciones"

Expand All @@ -519,7 +519,7 @@ msgstr "Mostrar globo de notificación en el escritorio"
msgid "Show notification dialog"
msgstr "Mostrar cuadro de diálogo de notificación"

#: src/Console/AppConsole.vala:97
#: src/Console/AppConsole.vala:93
msgid "Show unstable and RC releases"
msgstr "Ocultar versiones inestables y RC"

Expand All @@ -535,11 +535,11 @@ msgstr "Estado"
msgid "Stopped"
msgstr "Detenido"

#: src/Console/AppConsole.vala:82 src/Gtk/AppGtk.vala:181
#: src/Console/AppConsole.vala:78 src/Gtk/AppGtk.vala:179
msgid "Syntax"
msgstr "Sintaxis"

#: src/Console/AppConsole.vala:208 src/Gtk/AppGtk.vala:113
#: src/Console/AppConsole.vala:204 src/Gtk/AppGtk.vala:111
msgid "Temp"
msgstr ""

Expand Down Expand Up @@ -578,7 +578,7 @@ msgstr "Desinstalación finalizada"
msgid "Un-install completed with errors"
msgstr "Desinstalación finalizada con errores"

#: src/Console/AppConsole.vala:200 src/Gtk/AppGtk.vala:168
#: src/Console/AppConsole.vala:196 src/Gtk/AppGtk.vala:166
msgid "Unknown option"
msgstr "Opción desconocida"

Expand Down
Loading

0 comments on commit e88e46e

Please sign in to comment.