Skip to content

Commit 77e0105

Browse files
committed
Get rid of Sources.gz related errors.
1 parent 650a009 commit 77e0105

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ubuntu-common/build_lib.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ __make_barclamp_pkg_metadata() {
129129
sudo chown -R "$(whoami)" "$CACHE_DIR/barclamps/$1/$OS_TOKEN/pkgs"
130130
if [[ $CURRENT_CACHE_BRANCH ]]; then
131131
in_cache git add "barclamps/$1/$OS_TOKEN/pkgs/Packages.gz"
132-
in_cache git add "barclamps/$1/$OS_TOKEN/pkgs/Sources.gz"
132+
if in_cache test -f "barclamps/$1/$OS_TOKEN/pkgs/Sources.gz"; then
133+
in_cache git add "barclamps/$1/$OS_TOKEN/pkgs/Sources.gz"
134+
fi
133135
fi
134136
}
135137

0 commit comments

Comments
 (0)