Commit dc89afd4 authored by Ed Reel's avatar Ed Reel

Add self.remove package section

parent d9621940
...@@ -973,8 +973,10 @@ def remove (pkgName) ...@@ -973,8 +973,10 @@ def remove (pkgName)
file.write JSON.pretty_generate(out) file.write JSON.pretty_generate(out)
end end
puts "#{pkgName.capitalize} removed!".lightgreen set_package pkgName, true
@pkg.remove
puts "#{pkgName.capitalize} removed!".lightgreen
end end
def build_command (args) def build_command (args)
......
# Defines common constants used in different parts of crew # Defines common constants used in different parts of crew
CREW_VERSION = '1.5.2' CREW_VERSION = '1.5.3'
ARCH_ACTUAL = `uname -m`.strip ARCH_ACTUAL = `uname -m`.strip
# This helps with virtualized builds on aarch64 machines # This helps with virtualized builds on aarch64 machines
......
...@@ -105,6 +105,11 @@ class Package ...@@ -105,6 +105,11 @@ class Package
end end
# Function to perform after package removal.
def self.remove
end
def self.system(*args) def self.system(*args)
# add "-j#" argument to "make" at compile-time, if necessary # add "-j#" argument to "make" at compile-time, if necessary
......
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