Browse Source

package-add updates

Eeems 10 years ago
parent
commit
abcef66268
1 changed files with 5 additions and 3 deletions
  1. 5 3
      bin/repo-update

+ 5 - 3
bin/repo-update

@@ -84,6 +84,8 @@ for val in "${sites[@]}"; do
 		esac;
 	fi;
 done;
-ls -l $root/repo/updates/ | egrep '^d' | awk '{print $9}' | while read arch; do
-	rm -f $root/repo/updates/$arch/*.pkg.tar.xz;
-done;
+if ! force; then
+	ls -l $root/repo/updates/ | egrep '^d' | awk '{print $9}' | while read arch; do
+		rm -f $root/repo/updates/$arch/*.pkg.tar.xz;
+	done;
+fi;