Commit fb947865 authored by Ed Reel's avatar Ed Reel

Remove sudo from crew commands in glibc package

parent 77c28764
......@@ -3,7 +3,7 @@ require 'package'
class Glibc < Package
description 'The GNU C Library project provides the core libraries for GNU/Linux systems.'
homepage 'https://www.gnu.org/software/libc/'
version '1.0'
version '1.1'
is_fake
......@@ -11,7 +11,7 @@ class Glibc < Package
depends_on 'glibc223'
# Check previous version
if File.exist? CREW_CONFIG_PATH + "meta/glibc219.filelist"
conflict_solve = "`sudo crew remove glibc219`"
conflict_solve = "`crew remove glibc219`"
end
else
depends_on 'glibc219'
......@@ -21,16 +21,16 @@ class Glibc < Package
if File.exist? CREW_CONFIG_PATH + "meta/glibc.filelist"
if File.exist? CREW_CONFIG_PATH + "meta/glibc223.filelist"
# Already installed old glibc and glibc223, so need to remove both once
conflict_solve = "`sudo crew remove glibc223` AND `sudo crew remove glibc`"
conflict_solve = "`crew remove glibc223 glibc`"
else
# Already installed old glibc, so need it once
conflict_solve = "`sudo crew remove glibc`"
conflict_solve = "`crew remove glibc`"
end
end
if conflict_solve
puts
puts "IN ORDER TO INSTALL/UPGRADE GLIBC, PLEASE PERFORMS #{conflict_solve} FIRST"
puts "In order to install/upgrade glibc, please execute #{conflict_solve} first".lightblue
puts
exit 1
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment