A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Re: huhu - Stikked
From Emerald Goose, 5 Years ago, written in YAML.
This paste is a reply to huhu from ich - view diff
Embed
  1. ---
  2. # tasks file for dist_repo
  3. - name: create distribution repository for ecu packages
  4.   block:
  5.   - name: create Packages description
  6.     shell: "dpkg-scanpackages -m . | gzip -c9 > Packages.gz"
  7.     args:
  8.       chdir: "{{local_debian_dir}}"
  9.       creates: "{{local_debian_dir}}/Packages.gz"
  10.     changed_when: false
  11.     delegate_to: localhost
  12.  
  13.   - name: "create remote upload dir {{remote_debian_dir}}"
  14.     file:
  15.       path: "{{remote_debian_dir}}"
  16.       state: directory
  17.     changed_when: false
  18.  
  19.   - name: "find all files in {{local_debian_dir}}"
  20.     find:
  21.       paths: "{{local_debian_dir}}"
  22.       file_type: file
  23.       depth: 1
  24.     register: result
  25.     delegate_to: localhost
  26.  
  27.   - name: copy debian packages
  28.     copy:
  29.       src: "{{item.path}}"
  30.       dest: "{{remote_debian_dir}}"
  31.       directory_mode: yes
  32.     changed_when: false
  33.     with_items: "{{result.files}}"
  34.  
  35.   - name: create file debian repo
  36.     template:
  37.       src: "source.list"
  38.       dest: "/etc/apt/sources.list.d/ansible.list"
  39.     changed_when: false
  40.  
  41.   - name: update apt cache
  42.     apt:
  43.       update_cache: "{{update_cache}}"
  44.     changed_when: false
  45.   when: state == "present"
  46.  
  47. - name: remove distribution repository for ecu packages
  48.   block:
  49.   - name: "remove {{remote_debian_dir}}"
  50.     file:
  51.       path: "{{remote_debian_dir}}"
  52.       state: absent
  53.     changed_when: false
  54.  
  55.   - name: "remove /etc/apt/sources.list.d/ansible.list"
  56.     file:
  57.       path: "/etc/apt/sources.list.d/ansible.list"
  58.       state: absent
  59.     changed_when: false
  60.   when: state == "absent"
  61.