diff options
author | François Andriot <albator78@libertysurf.fr> | 2013-11-16 12:53:26 +0100 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2013-11-16 12:53:26 +0100 |
commit | e72b5e345ea0f786ec9e0bb358c68cc736cdeccf (patch) | |
tree | 2c6f07d8e8abcf7d6b3e3830208eb5ec1c16edc3 /redhat/buildenv.sh | |
parent | 1b4d42e2cb9b924e3a8a809c3cfe74d56fedb38c (diff) | |
download | tde-packaging-e72b5e345ea0f786ec9e0bb358c68cc736cdeccf.tar.gz tde-packaging-e72b5e345ea0f786ec9e0bb358c68cc736cdeccf.zip |
RPM Packaging: update build scripts
Diffstat (limited to 'redhat/buildenv.sh')
-rw-r--r-- | redhat/buildenv.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/redhat/buildenv.sh b/redhat/buildenv.sh index a1a03f8c0..f7aef2a08 100644 --- a/redhat/buildenv.sh +++ b/redhat/buildenv.sh @@ -74,3 +74,11 @@ alias crz='(cdrpm; createrepo $(uname -i); createrepo noarch; sudo zypper refres # Build local repository (PCLOS) alias cra='(cdrpm; genpkglist $PWD noarch; genpkglist $PWD i586; genpkglist $PWD x86_64; genbasedir $PWD i586 x86_64 noarch; sudo apt-get update)' alias crac='(cdrpm; for i in i586 noarch x86_64; do cd $i; tdesortrpm.sh; cd -; done; rpmsign --addsign */RPMS.*/*.rpm; for i in i586 noarch x86_64; do for j in 3rdparty applications dependencies extras libraries main; do genpkglist $PWD/$i $j; done; done; for i in i586 noarch x86_64; do genbasedir $PWD/$i 3rdparty applications dependencies extras libraries main; done; sudo apt-get update)' + +# Reinstall packages (Mageia) +getrpmfromsrpm() { + rpm -qa --qf "%{name} %{sourcerpm}\n"|grep "$1"|awk '{print $1}' +} +reinst() { + sudo urpmi --replacepkgs --allow-force $(getrpmfromsrpm $1) +} |