Skip to content

Instantly share code, notes, and snippets.

View satyamz's full-sized avatar
👨‍💻

Satyam Zode satyamz

👨‍💻
View GitHub Profile
#!/usr/bin/env python3
from sys import exit
from test.ftp_test import FTPTest
from test.base_test import FTP
from misc.wget_file import WgetFile
import os
"""
This test ensures that Wget recursive download from FTP Server
"""
class WgetFile:
""" WgetFile is a File Data Container object """
def __init__ (
self,
name,
content, #Removed default argument
timestamp=None,
rules=None
@satyamz
satyamz / 0_reuse_code.js
Last active September 11, 2015 18:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@satyamz
satyamz / Notes.md
Created June 13, 2016 15:10
Notes on free softwares with ignore capabilites
@satyamz
satyamz / interface-v1.md
Created June 22, 2016 08:21
Interface design for use cases

Interface design


  • Use Case : Ignoring .buildinfo file from .changes file
  • Interface : --hide-buildinfo or --hide=buildinfo(Not --hide=*.buildinfo since there's only one buildinfo file)
@satyamz
satyamz / test.diff
Last active June 25, 2016 13:48
Diff of test for ignoring .buildinfo file from .changes differences
diff --git a/tests/comparators/test_debian.py b/tests/comparators/test_debian.py
index 86e70c2..d9396e1 100644
--- a/tests/comparators/test_debian.py
+++ b/tests/comparators/test_debian.py
@@ -35,6 +35,8 @@ TEST_DOT_CHANGES_FILE1_PATH = os.path.join(os.path.dirname(__file__), '../data/t
TEST_DOT_CHANGES_FILE2_PATH = os.path.join(os.path.dirname(__file__), '../data/test2.changes')
TEST_DEB_FILE1_PATH = os.path.join(os.path.dirname(__file__), '../data/test1.deb')
TEST_DEB_FILE2_PATH = os.path.join(os.path.dirname(__file__), '../data/test2.deb')
+TEST_DOT_BUILDINFO_FILE1_PATH = os.path.join(os.path.dirname(__file__), '../data/test1.buildinfo')
+TEST_DOT_BUILDINFO_FILE2_PATH = os.path.join(os.path.dirname(__file__), '../data/test2.buildinfo')
@satyamz
satyamz / test-1.diff
Last active June 26, 2016 09:10
This test is checking two `.changes` files having identical fields except `.buildinfo`. It is returning http://paste.debian.net/plain/759295
diff --git a/tests/comparators/test_debian.py b/tests/comparators/test_debian.py
index 627e0af..0561ccf 100644
--- a/tests/comparators/test_debian.py
+++ b/tests/comparators/test_debian.py
@@ -33,6 +33,7 @@ from diffoscope.presenters.text import output_text
TEST_DOT_CHANGES_FILE1_PATH = os.path.join(os.path.dirname(__file__), '../data/test1.changes')
TEST_DOT_CHANGES_FILE2_PATH = os.path.join(os.path.dirname(__file__), '../data/test2.changes')
+TEST_DOT_CHANGES_FILE3_PATH = os.path.join(os.path.dirname(__file__), '../data/test3.changes')
TEST_DEB_FILE1_PATH = os.path.join(os.path.dirname(__file__), '../data/test1.deb')
diff --git a/diffoscope/comparators/debian.py b/diffoscope/comparators/debian.py
index 052512d..704e436 100644
--- a/diffoscope/comparators/debian.py
+++ b/diffoscope/comparators/debian.py
@@ -166,15 +166,11 @@ class DotChangesFile(DebControlFile):
continue
# Find whether files are identical or not.
+
differences = super(DotChangesFile, self).compare(other)
@satyamz
satyamz / case-3.diff
Created July 11, 2016 16:26
case 3: content differ and files are identical here `.buildinfo` changes are ignored
satyam@satyamz:~/debian/satyamz-guest/project/reproducible-builds/diffoscope/bin$ ./diffoscope aolserver4/b1/aolserver4_4.5.1-18.0~reproducible1.0~reproducible1_amd64.changes aolserver4/b2/aolserver4_4.5.1-18.0~reproducible1.0~reproducible1_amd64.changes
--- aolserver4/b1/aolserver4_4.5.1-18.0~reproducible1.0~reproducible1_amd64.changes
+++ aolserver4/b2/aolserver4_4.5.1-18.0~reproducible1.0~reproducible1_amd64.changes
├── Date
│ @@ -1 +1 @@
│ -Tue, 21 Jun 2016 19:44:37 +0530
│ +Tue, 22 Jun 2016 19:44:37 +0530
@satyamz
satyamz / aolserver4_4.5.1-18.0~reproducible1.0~reproducible1_amd64.changes
Created July 11, 2016 16:34
b1/aolserver4_4.5.1-18.0~reproducible1.0~reproducible1_amd64.changes
Format: 1.8
Date: Tue, 21 Jun 2016 19:44:37 +0530
Source: aolserver4
Binary: aolserver4-daemon aolserver4-core aolserver4-dev aolserver4-doc
Architecture: amd64 all
Version: 4.5.1-18.0~reproducible1.0~reproducible1
Distribution: UNRELEASED
Urgency: medium
Maintainer: Francesco Paolo Lovergine <frankie@debian.org>
Changed-By: Satyam Zode <satyamzode@gmail.com>