Hello community, here is the log from the commit of package mkdud for openSUSE:Factory checked in at 2018-12-21 08:22:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mkdud (Old) and /work/SRC/openSUSE:Factory/.mkdud.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mkdud" Fri Dec 21 08:22:30 2018 rev:26 rq:660261 version:1.43 Changes: -------- --- /work/SRC/openSUSE:Factory/mkdud/mkdud.changes 2018-12-12 17:29:37.390790385 +0100 +++ /work/SRC/openSUSE:Factory/.mkdud.new.28833/mkdud.changes 2018-12-21 08:22:33.893505622 +0100 @@ -1,0 +2,21 @@ +Thu Dec 20 11:00:46 UTC 2018 - [email protected] + +- merge gh#openSUSE/mkdud#26 +- fix building on old distros +- 1.43 + +-------------------------------------------------------------------- +Thu Dec 20 10:27:23 UTC 2018 - [email protected] + +- merge gh#openSUSE/mkdud#25 +- fix package build +- 1.42 + +-------------------------------------------------------------------- +Thu Dec 20 10:05:17 UTC 2018 - [email protected] + +- merge gh#openSUSE/mkdud#24 +- Add bash completion +- 1.41 + +-------------------------------------------------------------------- Old: ---- mkdud-1.40.tar.xz New: ---- mkdud-1.43.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mkdud.spec ++++++ --- /var/tmp/diff_new_pack.vzkwyZ/_old 2018-12-21 08:22:34.401505147 +0100 +++ /var/tmp/diff_new_pack.vzkwyZ/_new 2018-12-21 08:22:34.405505143 +0100 @@ -22,7 +22,7 @@ Summary: Create driver update from rpms License: GPL-3.0+ Group: Hardware/Other -Version: 1.40 +Version: 1.43 Release: 0 Source: %{name}-%{version}.tar.xz Url: https://github.com/openSUSE/mkdud @@ -50,6 +50,7 @@ %files %defattr(-,root,root) /usr/bin/mkdud +/usr/share/bash-completion %doc README.md COPYING %changelog ++++++ mkdud-1.40.tar.xz -> mkdud-1.43.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdud-1.40/Makefile new/mkdud-1.43/Makefile --- old/mkdud-1.40/Makefile 2018-12-11 16:16:47.000000000 +0100 +++ new/mkdud-1.43/Makefile 2018-12-20 12:00:46.000000000 +0100 @@ -4,6 +4,7 @@ BRANCH := $(shell [ -d .git ] && git branch | perl -ne 'print $$_ if s/^\*\s*//') PREFIX := mkdud-$(VERSION) BINDIR = /usr/bin +COMPLDIR = /usr/share/bash-completion/completions all: archive @@ -21,6 +22,7 @@ @cp mkdud mkdud.tmp @perl -pi -e 's/0\.0/$(VERSION)/ if /VERSION = /' mkdud.tmp install -m 755 -D mkdud.tmp $(DESTDIR)$(BINDIR)/mkdud + install -m 644 -D bash_completion/mkdud $(DESTDIR)$(COMPLDIR)/mkdud @rm -f mkdud.tmp clean: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdud-1.40/VERSION new/mkdud-1.43/VERSION --- old/mkdud-1.40/VERSION 2018-12-11 16:16:47.000000000 +0100 +++ new/mkdud-1.43/VERSION 2018-12-20 12:00:46.000000000 +0100 @@ -1 +1 @@ -1.40 +1.43 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdud-1.40/bash_completion/mkdud new/mkdud-1.43/bash_completion/mkdud --- old/mkdud-1.40/bash_completion/mkdud 1970-01-01 01:00:00.000000000 +0100 +++ new/mkdud-1.43/bash_completion/mkdud 2018-12-20 12:00:46.000000000 +0100 @@ -0,0 +1,131 @@ +# bash completion for mkdud -*- shell-script -*- + +# complete options, directories, and files in directories + +_completeMkdud() +{ + local mode="general" + local g_options='--version --help -s --show -c --create' + local c_options='--save-temp -a --arch -d --dist --condition + -p --prio -n --name -x --exec -i --install --config + --no-docs --keep-docs --force --no-fix-yast --no-fix-dist + --no-fix-usr-src --no-fix-adddir --format --prefix + --sign --detached-sign --sign-key --volume --vendor + --preparer --application --obs-keys' + local dists='sle11 sle12 sle15 leap42.3 leap15.0 leap15.1 tw + caasp1.0 caasp2.0 caasp3.0 caasp4.0' + local sps='ServicePack0 ServicePack1 ServicePack2 ServicePack3 ServicePack4' + + local cur prev words cword split + _init_completion -s || return 0 + + # mkdud only takes options, tabbing after command name adds a single dash + [[ $cword -eq 1 && -z "$cur" ]] && + { + compopt -o nospace + COMPREPLY=( "-" ) + return 0 + } + + COMPREPLY=() + case $prev in + --help|--version) + return 0 + ;; + esac + + local args i + + # find which mode to use and how many real args used so far + for (( i=1; i < cword; i++ )); do + case ${words[i]} in + -c|--create) + mode="create" + args=$(($cword - i)) + break + ;; + -s|--show) + mode="show" + args=$(($cword - i)) + break + ;; + esac + done + + # option completions + if [[ "$cur" == -* ]]; then + case $mode in + show) + ;; + create) + case $prev in + -c|--create|-d|--dist|-n|--name|--condition) + # error, no argument provided but mandatory + return 0 + ;; + esac + COMPREPLY=( $( compgen -W '$c_options' -- $cur ) ) + ;; + *) + COMPREPLY=( $( compgen -W '$g_options' -- $cur ) ) + ;; + esac + # argument completions + else + case $mode in + show) + case $args in + 1) + _filedir dud + ;; + esac + ;; + create) + case $args in + 1) + # DUD name is mandatory + if [ -z "$cur" ]; then + COMPREPLY=( "foo.dud" ) + fi + ;; + 2) + case $prev in + -*) + # error, no DUD name provided + return 0 + ;; + *) + # distribution is more common than .iso file + # and mandatory for *.rpm ("./"<tab> for iso) + if [ -z "$cur" ]; then + COMPREPLY=( "--dist" ) + else + _filedir iso + fi + ;; + esac + ;; + *) + case $prev in + -d|--dist) + COMPREPLY=( $( compgen -W '$dists' -- $cur ) ) + ;; + -n|--name) + # name should not be a file name + ;; + *) + if [ "$prev" == "--condition" ]; then + COMPREPLY=( $( compgen -W '$sps' -- $cur ) ) + fi + _filedir + ;; + esac + ;; + esac + ;; + esac + fi +} && +complete -F _completeMkdud mkdud + +# ex: ts=4 sw=4 et filetype=sh diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdud-1.40/changelog new/mkdud-1.43/changelog --- old/mkdud-1.40/changelog 2018-12-11 16:16:47.000000000 +0100 +++ new/mkdud-1.43/changelog 2018-12-20 12:00:46.000000000 +0100 @@ -1,3 +1,15 @@ +2018-12-20: 1.43 + - merge gh#openSUSE/mkdud#26 + - fix building on old distros + +2018-12-20: 1.42 + - merge gh#openSUSE/mkdud#25 + - fix package build + +2018-12-20: 1.41 + - merge gh#openSUSE/mkdud#24 + - Add bash completion + 2018-12-11: 1.40 - merge gh#openSUSE/mkdud#23 - move spec file into obs directory diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdud-1.40/obs/mkdud.spec new/mkdud-1.43/obs/mkdud.spec --- old/mkdud-1.40/obs/mkdud.spec 2018-12-11 16:16:47.000000000 +0100 +++ new/mkdud-1.43/obs/mkdud.spec 2018-12-20 12:00:46.000000000 +0100 @@ -50,6 +50,7 @@ %files %defattr(-,root,root) /usr/bin/mkdud +/usr/share/bash-completion %doc README.md COPYING %changelog
