Skip to content

Instantly share code, notes, and snippets.

View satyamz's full-sized avatar
👨‍💻

Satyam Zode satyamz

👨‍💻
View GitHub Profile
@satyamz
satyamz / aolserver4_4.5.1-18.0~reproducible1.0~reproducible1_amd64.changes
Last active July 11, 2016 16:35
b2/aolserver4_4.5.1-18.0~reproducible1.0~reproducible1_amd64.changes
Format: 1.8
Date: Tue, 22 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>
@satyamz
satyamz / aolserver4_4.5.1-18.0~reproducible1.0~reproducible1_amd64.changes
Created July 11, 2016 16:41
`b2/aolserver4_4.5.1-18.0~reproducible1.0~reproducible1_amd64.changes` (file having different files than `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>
@satyamz
satyamz / case-2.diff
Created July 11, 2016 16:44
case-2: identical contents and different files. Differences including `.buildinfo` ( output of https://gist.github.com/satyamz/16c2d673d7f414e33772ecec442971a7 and https://gist.github.com/satyamz/c42589b0ed965faf06c217d910ec8a82)
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
├── Files
│ @@ -1,6 +1,8 @@
│ 36e93c15d8de929d1513f5385f7e10e3 26568 debug extra aolserver4-core-dbgsym_4.5.1-18.0~reproducible1.0~reproducible1_amd64.deb
│ 15065141cf6c72156a647fdf7bc40858 275560 web optional aolserver4-core_4.5.1-18.0~reproducible1.0~reproducible1_amd64.deb
│ 68c9520b022f89300196b54c1c90dcf5 4894 debug extra aolserver4-daemon-dbgsym_4.5.1-18.0~reproducible1.0~reproducible1_amd64.deb
│ 7d78fe13989763fe6cad2dccfd9bc8e9 164854 web optional aolserver4-daemon_4.5.1-18.0~reproducible1.0~reproducible1_amd64.deb
@satyamz
satyamz / compare_method.diff
Created July 14, 2016 20:41
This is sample implementation (Not verified yet) .
diff --git a/diffoscope/comparators/debian.py b/diffoscope/comparators/debian.py
index 9c12f3d..9f4bfae 100644
--- a/diffoscope/comparators/debian.py
+++ b/diffoscope/comparators/debian.py
@@ -147,6 +147,17 @@ class DotChangesFile(DebControlFile):
file._deb822 = changes
return True
+ def compare(self, other, source=None):
+ try:
(Pdb) differences
<Difference /tmp/pytest-of-satyam/pytest-0/test_dot_changes_different_con0/d/test_4.changes -- /tmp/pytest-of-satyam/pytest-0/test_dot_changes_different_con0/b/test_1.changes [<Difference Description -- Description []>, <Difference Files -- Files []>, <Difference test_2.buildinfo -- test_2.buildinfo []>]>
(Pdb) differences.details
[<Difference Description -- Description []>, <Difference Files -- Files []>, <Difference test_2.buildinfo -- test_2.buildinfo []>]
diff --git a/diffoscope/comparators/debian.py b/diffoscope/comparators/debian.py
index 9c12f3d..2578503 100644
--- a/diffoscope/comparators/debian.py
+++ b/diffoscope/comparators/debian.py
@@ -147,6 +147,14 @@ class DotChangesFile(DebControlFile):
file._deb822 = changes
return True
+ def compare(self, other, source=None):
+ differences = super().compare(other, source)
From d74f65cd06492ee5edca2f38e1ee1ad52ca33ddd Mon Sep 17 00:00:00 2001
From: Satyam Zode <satyamzode@gmail.com>
Date: Sun, 21 Aug 2016 22:34:39 +0530
Subject: [PATCH] Improve behaviour of diffoscope while comparing .changes
files
compare() method returns differences which includes `.buildinfo`
differences by default.
One would want to ignore `.buildinfo` differences if all files in
`Files` as well as all other fields of `.changes` files are same.

Google Summer of Code 2016 - Final Report






@satyamz
satyamz / Hide-gzip-metadata.diff
Created August 24, 2016 04:51
Add new command line option for hiding gzip metadata from diffoscope output
diff --git a/diffoscope/comparators/gzip.py b/diffoscope/comparators/gzip.py
index fff03e5..876418f 100644
--- a/diffoscope/comparators/gzip.py
+++ b/diffoscope/comparators/gzip.py
@@ -25,6 +25,7 @@ import collections
from diffoscope import logger, tool_required
from diffoscope.difference import Difference
from diffoscope.comparators.utils import Archive, get_compressed_content_name
+from diffoscope.config import Config

PR workflow for contributing to OpenEBS kubernetes provisioner

This document describes process for creating contributing to openebs/external-storage project. At a very high level, the process to contribute and improve is pretty simple:

  • Submit an Issue describing your proposed change
  • Create your development branch
  • Commit your changes
  • Submit your Pull Request
  • Sync openebs/external-storage repository