From: Mark Huang Date: Thu, 14 Jul 2005 18:13:43 +0000 (+0000) Subject: - delete stale RPMs when installing X-Git-Tag: planetlab-3_2-branch-point~14 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=f40448c9b149b2f0c5272330d16b580af1ea5295;p=build.git - delete stale RPMs when installing --- diff --git a/Makefile b/Makefile index be3259a9..31946665 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2003-2005 The Trustees of Princeton University # -# $Id: Makefile,v 1.70 2005/06/06 18:07:45 smuir Exp $ +# $Id$ # # Default target @@ -315,10 +315,10 @@ ifneq ($(BUILDS),) endif # Populate repository ssh $(SERVER) mkdir -p $(ARCHIVE)/$(BASE)/RPMS $(ARCHIVE)/$(BASE)/SRPMS - rsync --links --perms --times --group --compress --rsh=ssh \ + rsync --delete --links --perms --times --group --compress --rsh=ssh \ $(sort $(subst -debuginfo,,$(wildcard RPMS/yumgroups.xml RPMS/*/*))) $(SERVER):$(ARCHIVE)/$(BASE)/RPMS/ ssh $(SERVER) yum-arch $(ARCHIVE)/$(BASE)/RPMS >/dev/null - rsync --links --perms --times --group --compress --rsh=ssh \ + rsync --delete --links --perms --times --group --compress --rsh=ssh \ $(wildcard SRPMS/*) $(SERVER):$(ARCHIVE)/$(BASE)/SRPMS/ ssh $(SERVER) yum-arch $(ARCHIVE)/$(BASE)/SRPMS >/dev/null ifeq ($(TAG),HEAD) diff --git a/plc.mk b/plc.mk index 4ca0410b..3359ffb0 100644 --- a/plc.mk +++ b/plc.mk @@ -4,7 +4,7 @@ # Mark Huang # Copyright (C) 2003-2005 The Trustees of Princeton University # -# $Id: plc.mk,v 1.2 2005/05/09 17:18:37 mlhuang Exp $ +# $Id: plc.mk,v 1.3 2005/06/06 21:53:37 mlhuang Exp $ # # Default target @@ -128,7 +128,7 @@ ifneq ($(BUILDS),) endif # Populate repository mkdir -p $(ARCHIVE)/$(BASE) - rsync --links --perms --times --group \ + rsync --delete --links --perms --times --group \ $(sort $(subst -debuginfo,,$(wildcard RPMS/yumgroups.xml RPMS/*/*))) $(ARCHIVE)/$(BASE)/ yum-arch $(ARCHIVE)/$(BASE) >/dev/null ifeq ($(TAG),HEAD)