Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lafenghu
kiwi
kiwi-find-boot-requires.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kiwi-find-boot-requires.sh of Package kiwi
#!/bin/bash sourcearchive=$1 shift boottype=$1 shift architecture=$1 shift oses="$@" # extract files tar xfj $sourcearchive kiwi/system/boot/ >&/dev/null declare -i MISSING MISSING="1" for os in $oses; do file="kiwi/system/boot/$architecture/$boottype/$os/config.xml" [ -e "$file" ] || echo "ERROR_NO_BOOT_CONFIG_FILE_FOUND" # my professional enterprise ready xml parser: while read line; do l=($line) package=${l[0]} arch=${l[1]} if [ -z "$arch" -o "$arch" == "$architecture" ]; then echo -n "$package " unset MISSING fi done < <( sed '/<packages type="delete">/,/<\/packages>/d' "$file" | perl -e 'while (<STDIN>) { if ($_ =~ /.*package name="([^"]*)"( arch="([^"]*)")?.*/ ) { print $1." ".$3."\n"; }; }' ) done [ -z "$MISSING" ] || echo "ERROR_NO_DEPENDENCIES_FOUND" #cleanup rm -rf kiwi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor