This is a text UI framework originally it was a part of [Anaconda]
(https://github.com/rhinstaller/anaconda) installer project.
hook global BufCreate .*\.ks %{ | |
set buffer filetype kickstart | |
} | |
addhl -group / regions -default code kickstart \ | |
comment (^|\h)\K\# $ '' \ | |
double_string '"' (?<!\\)(\\\\)*" '' \ | |
single_string "'" (?<!\\)(\\\\)*' '' \ | |
packages '^[^#]*\K%\<packages\>' '^[^#]*\K%\<end\>' '' \ | |
shell '^[^#]*\K%\<(pre|pre-install|post)\>' '^[^#]*\K%\<end\>' '' |
unbind % #zrusi zakladni klavesu pro rozdeleni okna | |
bind | split-window -h #pres | rozdeleni obrazovky vertikalne | |
bind - split-window -v #pres - rozdeleni obrazovky horizontalne | |
bind c new-window -c "$HOME" #new windows will be in home folder | |
#posledni pouzite | |
bind C-b last-window #posledni pouzite okno | |
bind C-v last-pane #posledni pouzity panel | |
#jednodussi ovladani | |
bind -n S-down new-window |
# "Conky Launchpad" # | |
# / \ | |
# ___/ \_________________________________________________________________________________________________________________________________________________ | |
#|##################################################################################################################| | |
#|##################################################################################################################| | |
#|###################################### Design by freeazy aka ivan90112 > ivan90112@gmail.com ################################| | |
#|##################################################################################################################| | |
#|##################################################################################################################| | |
#|##################################################################################################################| |
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Uncomment the following line if you don't like systemctl's auto-paging feature: | |
# export SYSTEMD_PAGER= |
#!/bin/bash | |
sleep 1 | |
SESSION=tmux | |
tmux has-session -t $SESSION | |
if [ $? -eq 1 ]; then |
############# HOOKS ######################## | |
# add lines numbers | |
hook global WinCreate .* %{addhl number_lines} | |
# add brackets highliting | |
hook global WinCreate .* %{addhl show_matching} | |
# use only spaces do not use tabs | |
hook -group TabExpander global InsertChar \t %{ exec -draft h@} |
# TODO: automate this to get new GitHub version everytime | |
%global commit 48007d5de22f57175115fc72fe9cb592e6b0efb2 | |
%global shortcommit %(c=%{commit}; echo ${c:0:7}) | |
Name: kakoune | |
Version: 0 | |
Release: 2.%{shortcommit}git%{?dist} | |
Summary: Vim inspired editor | |
License: Unlicense |
Name: playonlinux | |
Version: 4.2.11 | |
Summary: Graphical front-end for Wine | |
License: GPLv3 | |
URL: https://www.playonlinux.com | |
Release: 1%{?dist} | |
Source0: https://github.com/PlayOnLinux/POL-POM-4/archive/%{version}.tar.gz | |
# Wine supported on these arches | |
ExclusiveArch: %{arm} aarch64 %{ix86} x86_64 |
Before the release of Fedora 23 I was working on a bug which have caused Anaconda to fail the installation because of RPM transaction check error. This brought me to the investigation of the required space check. It eventually lead to complete rework of the space requirement check in Anaconda. I would like to explain why this was needed and how is it working now.
The old solution was really minimalistic. It read installed size of all required packages from DNF Python interface and then added 35 percent as a 'bonus'. Why 35 percent? It is hard to tell. The number seems to be the result of some old empiric testing - too old to know for sure. And why to use 'bonus' at all? Because the value obtained from DNF is only a portion of space which is really needed for the installation. DNF computes installed package size as a sum of all file sizes in a package. It looks somewhat reasonable but it is sti