- delete stale RPMs when installing
authorMark Huang <mlhuang@cs.princeton.edu>
Thu, 14 Jul 2005 18:13:43 +0000 (18:13 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Thu, 14 Jul 2005 18:13:43 +0000 (18:13 +0000)
Makefile
plc.mk

index be3259a..3194666 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # 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 4ca0410..3359ffb 100644 (file)
--- a/plc.mk
+++ b/plc.mk
@@ -4,7 +4,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # 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)