diff --git a/Makefile b/Makefile index 9eb8bc2..ded7c8f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ BUILD_DIR = build DESCRIPTION = CS50 Library for Python MAINTAINER = CS50 <sysadmins@cs50.harvard.edu> -NAME = lib50-python +NAME = python-cs50 +OLD_NAME = lib50-python VERSION = 1.2.4 .PHONY: bash @@ -30,9 +31,12 @@ deb: build -t deb \ -v "$(VERSION)" \ --after-install after-install.sh \ + --conflicts "$(NAME) (<< $(VERSION)), $(OLD_NAME)" \ --deb-no-default-config-files \ --depends python \ --depends python3 \ --description "$(DESCRIPTION)" \ + --replaces "$(NAME) (<= $(VERSION)), $(OLD_NAME)" \ --provides "$(NAME)" \ + --provides "$(OLD_NAME)" \ usr