Introduced applypatch in line with part of the TODO list
This commit is contained in:
parent
7af1f8857d
commit
d0cd8472c9
1 changed files with 8 additions and 1 deletions
9
bldpkg
9
bldpkg
|
@ -26,7 +26,6 @@
|
|||
# directory if tmpfs directory validation fails
|
||||
# -> Uncomment entirety of the code where compilers are to be hard-validated and improve C code
|
||||
# in the test files and also add suitable bldpkg.conf switches for it
|
||||
# -> Come up with a mechanism to notify which patch failed to apply for a given package
|
||||
# -> Remove faulty "write" check on tmpfsdir, replace it with the touch command similar to what
|
||||
# we are doing for testing parenttmp
|
||||
|
||||
|
@ -173,6 +172,14 @@ if [ -z "$skipchecksum" ] ; then
|
|||
echo "Looks good..."
|
||||
fi
|
||||
|
||||
# Function to output to the user which patch is about to be applied. Useful when
|
||||
# there are many patches and you want to determine which patch failed.
|
||||
applypatch() {
|
||||
relativepath="$(basename $1)"
|
||||
echo "Applying patch $relativepath.."
|
||||
patch -p1 < "$1"
|
||||
}
|
||||
|
||||
# Then source the configuration file holding all values
|
||||
if [ -f /etc/bldpkg.conf ] ; then
|
||||
source /etc/bldpkg.conf
|
||||
|
|
Loading…
Reference in a new issue