Split repository components for different releases
This commit is contained in:
parent
5bbbecd5e9
commit
9fcff2fe54
@ -4,7 +4,7 @@ Priority: optional
|
||||
Maintainer: Luca Niccoli <lultimouomo@gmail.com>
|
||||
Build-Depends: debhelper (>= 9.20120417), libgd2-noxpm-dev | libgd2-xpm-dev, libv4l-dev
|
||||
Standards-Version: 3.9.5
|
||||
Homepage: http://www.firestorm.cx/fswebcam/
|
||||
Homepage: https://github.com/avafinger/fswebcam
|
||||
|
||||
Package: fswebcam-gc2035
|
||||
Architecture: linux-any
|
||||
@ -17,3 +17,5 @@ Description: Tiny and flexible webcam program
|
||||
the first (possibly bad) frames before performing the actual capture, and
|
||||
can perform simple manipulation on the captured image, such as resizing,
|
||||
averaging multiple frames or overlaying a caption or an image.
|
||||
.
|
||||
This is the version for Orange Pi boards with gc2035 camera
|
||||
|
||||
22
general.sh
22
general.sh
@ -281,27 +281,27 @@ addtorepo()
|
||||
# create local repository if not exist
|
||||
if [[ -z $(aptly repo list -config=config/aptly.conf -raw | awk '{print $(NF)}' | grep $release) ]]; then
|
||||
display_alert "Creating section" "$release" "info"
|
||||
aptly repo create -config=config/aptly.conf -distribution=$release -component="main" -comment="Armbian main repository" $release
|
||||
aptly repo create -config=config/aptly.conf -distribution=$release -component=main -comment="Armbian main repository" $release
|
||||
fi
|
||||
if [[ -z $(aptly repo list -config=config/aptly.conf -raw | awk '{print $(NF)}' | grep $release"-utils") ]]; then
|
||||
aptly repo create -config=config/aptly.conf -distribution=$release -component="utils" -comment="Armbian utilities" "$release"-utils
|
||||
if [[ -z $(aptly repo list -config=config/aptly.conf -raw | awk '{print $(NF)}' | grep "${release}-utils") ]]; then
|
||||
aptly repo create -config=config/aptly.conf -distribution=$release -component="${release}-utils" -comment="Armbian utilities" ${release}-utils
|
||||
fi
|
||||
if [[ -z $(aptly repo list -config=config/aptly.conf -raw | awk '{print $(NF)}' | grep $release"-desktop") ]]; then
|
||||
aptly repo create -config=config/aptly.conf -distribution=$release -component="desktop" -comment="Armbian desktop" "$release"-desktop
|
||||
if [[ -z $(aptly repo list -config=config/aptly.conf -raw | awk '{print $(NF)}' | grep "${release-desktop") ]]; then
|
||||
aptly repo create -config=config/aptly.conf -distribution=$release -component="${release}-desktop" -comment="Armbian desktop" ${release}-desktop
|
||||
fi
|
||||
# create local repository if not exist
|
||||
|
||||
# adding main
|
||||
if find $POT -maxdepth 1 -type f -name "*.deb" 2>/dev/null | grep -q .; then
|
||||
display_alert "Adding to repository $release" "main" "ext"
|
||||
aptly repo add -force-replace=${replace} -config=config/aptly.conf $release $POT/*.deb
|
||||
aptly repo add -force-replace=$replace -config=config/aptly.conf $release $POT/*.deb
|
||||
else
|
||||
display_alert "Not adding $release" "main" "wrn"
|
||||
fi
|
||||
# adding utils
|
||||
if find ${POT}extra/$release/utils -maxdepth 1 -type f -name "*.deb" 2>/dev/null | grep -q .; then
|
||||
display_alert "Adding to repository $release" "utils" "ext"
|
||||
aptly repo add -force-replace=${replace} -config=config/aptly.conf "$release"-utils ${POT}extra/$release/utils/*.deb
|
||||
aptly repo add -force-replace=$replace -config=config/aptly.conf "${release}-utils" ${POT}extra/$release/utils/*.deb
|
||||
else
|
||||
display_alert "Not adding $release" "utils" "wrn"
|
||||
fi
|
||||
@ -309,16 +309,16 @@ addtorepo()
|
||||
# adding desktop
|
||||
if find ${POT}extra/$release/desktop -maxdepth 1 -type f -name "*.deb" 2>/dev/null | grep -q .; then
|
||||
display_alert "Adding to repository $release" "desktop" "ext"
|
||||
aptly repo add -force-replace=${replace} -config=config/aptly.conf "$release"-desktop ${POT}extra/$release/desktop/*.deb
|
||||
aptly repo add -force-replace=$replace -config=config/aptly.conf "${release}-desktop" ${POT}extra/$release/desktop/*.deb
|
||||
else
|
||||
display_alert "Not adding $release" "desktop" "wrn"
|
||||
fi
|
||||
|
||||
# publish
|
||||
aptly publish -passphrase=$GPG_PASS -origin=Armbian -label=Armbian -config=config/aptly.conf -component=main,utils,desktop \
|
||||
--distribution=$release repo $release $release"-utils" $release"-desktop" > /dev/null 2>&1
|
||||
aptly publish -passphrase=$GPG_PASS -origin=Armbian -label=Armbian -config=config/aptly.conf -component=main,${release}-utils,${release}-desktop \
|
||||
--distribution=$release repo $release ${release}-utils ${release}-desktop > /dev/null 2>&1
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
if [[ $? -ne 0 ]]; then
|
||||
display_alert "Publishing failed" "$release" "err"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user