upgrades-migrations / preupgrade-assistant

The Preupgrade Assistant performs an assessment of the system from the "upgradeability" point of view. Disclaimer: It was fun. R.I.P. :-)
GNU General Public License v3.0
13 stars 15 forks source link

[API] add some function for adding pkg to kickstart installation transaction #83

Closed pirat89 closed 8 years ago

pirat89 commented 8 years ago

Probably it could be usefull such function in API, which could be used for adding packages on the list of the kickstart file for installation of specific packages, which will not be installed by default otherwise and some functionality could be breaked. My idea about behaviour is something like that:

add_pkg_to_kickstart() {
  [ $# -eq 0  ] && {
    echo "Missing parameters! Any package will be added." >&2
    return 1
  }

  while [ $# -ne 0 ]; do
    echo $1 >> $KICKSTART_DIR/special_pkg_list
    shift
  done
  return 0
}

The file would be processed by PA and packages will be part of the section %packages. So everything will be installed at once.

phracek commented 8 years ago

Totally agree, It make sence.

phracek commented 8 years ago

It is fixed by PR https://github.com/phracek/preupgrade-assistant/pull/88

phracek commented 8 years ago

@pirat89 Feel free to comment and review this Pull Request.

phracek commented 8 years ago

It is fixed by PR https://github.com/phracek/preupgrade-assistant/pull/88