Skip to content

Instantly share code, notes, and snippets.

View wico's full-sized avatar
🇸🇪
🇩🇪

Martin Wilhelm wico

🇸🇪
🇩🇪
View GitHub Profile
@wico
wico / Dockerfile
Created June 9, 2016 07:32
Dockerfile to build lampe
FROM ubuntu:15.10
RUN apt-get clean && \
apt-get update && \
apt-get -y install \
libsoup2.4-dev \
libgtk-3-dev \
libjson-glib-dev \
valac \
make \
@wico
wico / 0001-Added-a-new-boolean-parameter-called-update_submodul.patch
Created October 23, 2014 09:26
If set to true and if the scm-method is "git", mock does a "git submodule update --init --recursive" as a final step after code checkout and possibly branch-switches. Without "git submodule update --init --recursive" but with cloned submodules, all the submodules are master-branch-only. Thus, you can't point to a submodule's non-master-branch wi…
diff --git a/etc/mock/site-defaults.cfg b/etc/mock/site-defaults.cfg
index 32472e4..c5ecfd3 100644
--- a/etc/mock/site-defaults.cfg
+++ b/etc/mock/site-defaults.cfg
@@ -118,6 +118,7 @@
DROP="`wget -qO- http://www.spamhaus.org/drop/drop.txt`";for i in `echo $DROP|egrep -o "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/[0-9]{1,3}"|sort -n`; do route add -net $i reject; done;EDROP="`wget -qO- http://www.spamhaus.org/drop/edrop.txt`";for i in `echo $EDROP|egrep -o "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/[0-9]{1,3}"|sort -n`; do route add -net $i reject; done