Browse Source

Remove unneeded patch.

master
Roelf Wichertjes 2 years ago
parent
commit
05d744cb27
Signed by: rewby GPG Key ID: 4C2B6D2972EE5423
2 changed files with 0 additions and 24 deletions
  1. +0
    -4
      Dockerfile
  2. +0
    -20
      config.patch

+ 0
- 4
Dockerfile View File

@@ -53,10 +53,6 @@ USER ab
RUN git clone --recursive https://github.com/ArchiveTeam/ArchiveBot.git /home/ab/ArchiveBot
WORKDIR /home/ab/ArchiveBot

# Patch a file
COPY config.patch /home/ab/config.patch
RUN patch /home/ab/ArchiveBot/pipeline/archivebot/shared_config.py /home/ab/config.patch

# Setup symlinks for pipeline
RUN ln -s /usr/local/bin/wpull /home/ab/ArchiveBot/pipeline/wpull
RUN rm /home/ab/ArchiveBot/pipeline/youtube-dl


+ 0
- 20
config.patch View File

@@ -1,21 +0,0 @@
+++ shared_config.py 2022-02-24 20:31:13.029431468 +0100
@@ -1,12 +1,17 @@
import os
import yaml
+try:
+ from yaml import CLoader as Loader, CDumper as Dumper
+except ImportError:
+ from yaml import Loader, Dumper
+
def config():
my_dir = os.path.dirname(__file__)
config_file = os.path.join(my_dir, '../../lib/shared_config.yml')
with open(config_file, 'r') as f:
- return yaml.load(f.read())
+ return yaml.load(f.read(), Loader=Loader)
def log_channel():
c = config()

Loading…
Cancel
Save