Skip to content

Commit

Permalink
fixes debian package preparation logic
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Kononykhin <[email protected]>
  • Loading branch information
andkononykhin committed Mar 27, 2019
1 parent fb2a630 commit 200127b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build-scripts/ubuntu-1604/prepare-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ echo -e "\nGenerating manifest"
bash -ex ./generate_manifest.sh
cat indy_node/__manifest__.json

echo -e "\n\nPrepares indy-plenum debian package version"
sed -i -r "s~indy-plenum==([0-9\.]+[0-9])(\.)?([a-z]+)~indy-plenum==\1\~\3~" setup.py

echo -e "\nAdapt the dependencies for the Canonical archive"
sed -i "s~python-dateutil~python3-dateutil~" setup.py
sed -i "s~timeout-decorator~python3-timeout-decorator~" setup.py
sed -i "s~distro~python3-distro~" setup.py

echo -e "\n\nPrepares indy-plenum debian package version"
sed -i -r "s~indy-plenum==([0-9\.]+[0-9])(\.)?([a-z]+)~indy-plenum==\1\~\3~" $repo/setup.py

echo "Preparing config files"
GENERAL_CONFIG_DIR="\/etc\/indy"
REPO_GENERAL_CONFIG_DIR="indy_node/general_config"

# Define user config directory
sed -i "s/^\(GENERAL_CONFIG_DIR\s*=\s*\).*\$/\1\"$GENERAL_CONFIG_DIR\"/" indy_common/config.py
# Create user config
Expand Down

0 comments on commit 200127b

Please sign in to comment.