Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: chrome/installer/linux/common/rpm.include

Issue 264913004: Select the correct RPM package manager on Mageia (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased only Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 @@include@@variables.include 1 @@include@@variables.include
2 2
3 # Install the repository signing key (see also: 3 # Install the repository signing key (see also:
4 # http://www.google.com/linuxrepositories/aboutkey.html) 4 # http://www.google.com/linuxrepositories/aboutkey.html)
5 install_rpm_key() { 5 install_rpm_key() {
6 # Check to see if key already exists. 6 # Check to see if key already exists.
7 rpm -q gpg-pubkey-7fac5991-4615767f > /dev/null 2>&1 7 rpm -q gpg-pubkey-7fac5991-4615767f > /dev/null 2>&1
8 if [ "$?" -eq "0" ]; then 8 if [ "$?" -eq "0" ]; then
9 # Key already exists 9 # Key already exists
10 return 0 10 return 0
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 determine_rpm_package_manager() { 65 determine_rpm_package_manager() {
66 local RELEASE 66 local RELEASE
67 LSB_RELEASE="$(which lsb_release 2> /dev/null)" 67 LSB_RELEASE="$(which lsb_release 2> /dev/null)"
68 if [ -x "$LSB_RELEASE" ]; then 68 if [ -x "$LSB_RELEASE" ]; then
69 RELEASE=$(lsb_release -i 2> /dev/null | sed 's/:\t/:/' | cut -d ':' -f 2-) 69 RELEASE=$(lsb_release -i 2> /dev/null | sed 's/:\t/:/' | cut -d ':' -f 2-)
70 case $RELEASE in 70 case $RELEASE in
71 "Fedora") 71 "Fedora")
72 PACKAGEMANAGER=yum 72 PACKAGEMANAGER=yum
73 ;; 73 ;;
74 "MandrivaLinux") 74 "Mageia"|"MandrivaLinux")
75 PACKAGEMANAGER=urpmi 75 PACKAGEMANAGER=urpmi
76 ;; 76 ;;
77 "SUSE LINUX") 77 "SUSE LINUX")
78 PACKAGEMANAGER=yast 78 PACKAGEMANAGER=yast
79 ;; 79 ;;
80 esac 80 esac
81 fi 81 fi
82 82
83 if [ "$PACKAGEMANAGER" ]; then 83 if [ "$PACKAGEMANAGER" ]; then
84 return 84 return
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 get_lib_dir() { 309 get_lib_dir() {
310 if [ "$DEFAULT_ARCH" = "i386" ]; then 310 if [ "$DEFAULT_ARCH" = "i386" ]; then
311 LIBDIR=lib 311 LIBDIR=lib
312 elif [ "$DEFAULT_ARCH" = "x86_64" ]; then 312 elif [ "$DEFAULT_ARCH" = "x86_64" ]; then
313 LIBDIR=lib64 313 LIBDIR=lib64
314 else 314 else
315 echo Unknown CPU Architecture: "$DEFAULT_ARCH" 315 echo Unknown CPU Architecture: "$DEFAULT_ARCH"
316 exit 1 316 exit 1
317 fi 317 fi
318 } 318 }
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698