Commit 999a5191 authored by Robin Sonnabend's avatar Robin Sonnabend

Add debian security as source repository

parent bcfa0f7c
Pipeline #581 passed with stage
in 13 minutes and 35 seconds
......@@ -3,6 +3,7 @@ image: stretch_website
before_script:
- export LANG=en_US.UTF-8
- echo "deb http://security.debian.org/debian-security stretch/updates main contrib non-free" >> /etc/apt/sources.list
- echo "deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free" >> /etc/apt/sources.list
- sort /etc/apt/sources.list | uniq > sources.list.new
- mv sources.list.new /etc/apt/sources.list
- cat /etc/apt/sources.list
......
......@@ -113,10 +113,7 @@ def build_package(repo_dir, package_dir, name,
for filename in os.listdir(tempdir)
if filename.endswith(".deb")
]
print("deb packages:", deb_packages)
for filename in os.listdir(tempdir):
if not filename.endswith(".deb"):
continue
for filename in deb_packages:
shutil.move(os.path.join(tempdir, filename), package_dir)
......@@ -139,7 +136,8 @@ def main():
build_package(repo_dir=repo_dir, package_dir=package_dir, **package)
os.chdir(repo_dir)
print(os.listdir(package_dir))
import pprint
pprint.pprint(sorted(os.listdir(package_dir)))
if __name__ == "__main__":
main()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment