From 77bf02f02e3ed529394ef80c2d0c5417ab490d6e Mon Sep 17 00:00:00 2001
From: mazmazz <mar.marcoz@outlook.com>
Date: Mon, 26 Nov 2018 23:02:02 -0500
Subject: [PATCH] Don't clean files on Launchpad build

---
 assets/debian/rules          | 11 ++++-------
 assets/debian/source/options |  1 +
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/assets/debian/rules b/assets/debian/rules
index d3792dded..7b8f32169 100755
--- a/assets/debian/rules
+++ b/assets/debian/rules
@@ -53,14 +53,11 @@ build:
 			$(WGET) http://alam.srb2.org/SRB2/2.1.21-Final/Resources/$$file; \
 		fi; \
 		if [ -f $(RESOURCEDIR)/$$file ]; then \
-			if test "$$file" = "srb2.wad"; then \
-				$(INSTALL) $(RESOURCEDIR)/$$file $(DIR)/debian/tmp/$(DATADIR)/srb2.srb; \
-			else \
-				$(INSTALL) $(RESOURCEDIR)/$$file $(DIR)/debian/tmp/$(DATADIR)/$$file; \
-			fi; \
+			$(INSTALL) $(RESOURCEDIR)/$$file $(DIR)/debian/tmp/$(DATADIR)/$$file; \
 			echo $(RESOURCEDIR)/$$file >> $(DIR)/debian/source/include-binaries; \
-		else \
-			echo $(DIR)/$$file not found and could not be downloaded!; \
+		fi; \
+		if [ ! -f $(DIR)/debian/tmp/$(DATADIR)/$$file ]; then \
+			echo $(DIR)/debian/tmp/$(DATADIR)/$$file not found and could not be downloaded!; \
 			return 1; \
 		fi; \
 	done
diff --git a/assets/debian/source/options b/assets/debian/source/options
index 8b331485a..d383111a2 100644
--- a/assets/debian/source/options
+++ b/assets/debian/source/options
@@ -1 +1,2 @@
 tar-ignore = "tmp/*"
+no-pre-clean
-- 
GitLab