#!/bin/sh . ./tests/lib/test-setup.sh foo_setup repo_dir1=$repo_dir repo1=$repo conf1=$conf foo_setup python3 ./pinch.py pin "$conf1" python3 ./pinch.py pin "$conf" if python3 ./pinch.py update --dry-run "$conf1" "$conf";then echo "FAIL: Duplicate names should be rejected" exit 1 else echo PASS fi rm -rf "$repo_dir1" "$repo1" "$conf1"