diff options
Diffstat (limited to 'xbump')
-rwxr-xr-x | xbump | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xbump b/xbump index 8055452..9de5833 100755 --- a/xbump +++ b/xbump @@ -13,6 +13,16 @@ else msg="New package: $pkg-$version" fi +spkpattern=`xsubpkg "$pkg" | tr '\n' '|' | sed 's/\(.*\)|/^(\1)$/'` +shlibs=`git diff common/shlibs | grep "^+[^+]" | \ + sed "s/^+[^ ]\+ \(.*\)-[^-]\+_[0-9]\+$/\1/"` +if [ -n "`echo "$shlibs" | grep -vE "$spkpattern"`" ]; then + echo "common/shlibs contains uncommitted changes for other packages." 2>&1 + exit 1 +elif [ -n "$shlibs" ]; then + git add common/shlibs +fi + dirs=$(./xbps-src show "$pkg" | sed -n '/^\(pkgname\|subpackage\)/s/[^:]*:[\t]*/srcpkgs\//p') |