[rear-devel] [rear/rear] 0eec41: replaced is_numeric() with is_integer() and is_pos...

Johannes Meixner jsmeix at suse.com
Fri Jan 26 16:29:20 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/rear/rear
  Commit: 0eec413050319721d24c31af823da7217f84e0cf
      https://github.com/rear/rear/commit/0eec413050319721d24c31af823da7217f84e0cf
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2018-01-24 (Wed, 24 Jan 2018)

  Changed paths:
    M usr/share/rear/layout/save/GNU/Linux/230_filesystem_layout.sh
    M usr/share/rear/lib/global-functions.sh
    M usr/share/rear/verify/default/040_validate_variables.sh

  Log Message:
  -----------
  replaced is_numeric() with is_integer() and is_positive_integer() that also return a useful return code


  Commit: 4e9e2e16d662c96e1037e6fc7e2dd86c01dbd737
      https://github.com/rear/rear/commit/4e9e2e16d662c96e1037e6fc7e2dd86c01dbd737
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2018-01-24 (Wed, 24 Jan 2018)

  Changed paths:
    M usr/share/rear/lib/global-functions.sh

  Log Message:
  -----------
  document what read_and_strip_file() does and also return a useful return code


  Commit: 1503986fcd0466c34a2b20a6c0a81b9176e7952c
      https://github.com/rear/rear/commit/1503986fcd0466c34a2b20a6c0a81b9176e7952c
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2018-01-24 (Wed, 24 Jan 2018)

  Changed paths:
    M usr/share/rear/lib/global-functions.sh

  Log Message:
  -----------
  Two new functions percent_encode() and percent_decode()


  Commit: 491548aef86340c50bc8e83441ab34a6658e29b4
      https://github.com/rear/rear/commit/491548aef86340c50bc8e83441ab34a6658e29b4
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2018-01-24 (Wed, 24 Jan 2018)

  Changed paths:
    M usr/share/rear/layout/prepare/GNU/Linux/100_include_partition_code.sh
    M usr/share/rear/layout/save/GNU/Linux/200_partition_layout.sh

  Log Message:
  -----------
  Use percent_encode() and percent_decode() to again support GPT partition names with blanks and implement some quoting hell to provide what parted command line calls need


  Commit: 0fd67e2cfc8e465c82c59e58e10f326125ea42a0
      https://github.com/rear/rear/commit/0fd67e2cfc8e465c82c59e58e10f326125ea42a0
  Author: Johannes Meixner <jsmeix at suse.com>
  Date:   2018-01-26 (Fri, 26 Jan 2018)

  Changed paths:
    M usr/share/rear/layout/prepare/GNU/Linux/100_include_partition_code.sh
    M usr/share/rear/layout/save/GNU/Linux/200_partition_layout.sh
    M usr/share/rear/layout/save/GNU/Linux/230_filesystem_layout.sh
    M usr/share/rear/lib/global-functions.sh
    M usr/share/rear/verify/default/040_validate_variables.sh

  Log Message:
  -----------
  Merge pull request #1706 from jsmeix/again_support_partition_names_with_blanks_issues_212_and_1563

Again support GPT partition names with blanks,
see https://github.com/rear/rear/issues/1563
and https://github.com/rear/rear/issues/212

Implemeted two new general useful functions
percent_encode() and percent_decode()
which are used to again support GPT partition names
with blanks and re-implemented some quoting hell
to provide what parted command line calls need, cf.
https://github.com/rear/rear/issues/1563#issuecomment-359784102
but currently it fails for UTF-8 encoded strings
so that UTF-8 encoded GPT partition names
are not (yet?) supported.

By the way additionally replaced is_numeric() with
two new more generally usable functions is_integer()
and is_positive_integer() that return a useful return code
and better documented what read_and_strip_file() actually does
(it also skips lines with leading spaces) and also let it return
a useful return code to be more generally usable.


Compare: https://github.com/rear/rear/compare/29f815446c71...0fd67e2cfc8e


More information about the rear-devel mailing list