[gentoo-portage-dev] [PATCH v2] portageq: allow disabling regex matching of maintainer emails #604164

2016-12-30 Thread Göktürk Yüksek
When the email address of a maintainer contains unescaped regex-special characters (such as '+'), the maintainer-email match may return undesirable results. Add a command line option '--no-regex' to use re.escape() with list comprehension on maintainer emails when constructing the matcher regex. T

[gentoo-portage-dev] [PATCH v1] portageq: escape regex-special characters in maintainer emails #604164

2016-12-30 Thread Göktürk Yüksek
When the email address of a maintainer contains regex-special characters (such as '+'), re.match() returns incorrect results. Use re.escape() with list comprehension on maintainer emails when constructing the matcher regex. --- bin/portageq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[gentoo-portage-dev] [PATCH v2] repoman: declare '-x', '--xmlparse' command line options obsolete

2016-05-22 Thread Göktürk Yüksek
Repoman pulls in lxml unconditionally now and performs metadata checks by default. This behavior makes these command line options obsolete since forcing the default makes little sense. Declare them obsolete instead of removing them for backwards compatibility. --- repoman/man/repoman.1

[gentoo-portage-dev] [PATCH] repoman: declare '-x', '--xmlparse' command line options obsolete

2016-05-19 Thread Göktürk Yüksek
Repoman pulls in lxml unconditionally now and performs metadata checks by default. This behavior makes these command line options obsolete since forcing the default makes little sense. Declare them obsolete instead of removing them for backwards compatibility. Signed-off-by: Göktürk Yüksek

[gentoo-portage-dev] [PATCH 3/3] xml-test/uniqueness: tests for unique (element,attribute,value) combinations

2016-05-07 Thread Göktürk Yüksek
Signed-off-by: Göktürk Yüksek --- xml-test/uniqueness/metadata.xml | 33 +++ xml-test/uniqueness/uniqueness-0.1.ebuild | 12 +++ 2 files changed, 45 insertions(+) create mode 100644 xml-test/uniqueness/metadata.xml create mode 100644 xml-test

[gentoo-portage-dev] [PATCH 2/3] xml-test/singularity: tests for at-most-one element violations

2016-05-07 Thread Göktürk Yüksek
Signed-off-by: Göktürk Yüksek --- xml-test/singularity/metadata.xml | 43 + xml-test/singularity/singularity-0.1.ebuild | 11 2 files changed, 54 insertions(+) create mode 100644 xml-test/singularity/metadata.xml create mode 100644 xml-test

[gentoo-portage-dev] [PATCH 1/3] xml-text/valid: add a second description to downstream maintainer

2016-05-07 Thread Göktürk Yüksek
Increase coverage and prevent future regressions by adding a second description for a downstream maintainer element. See also: https://gitweb.gentoo.org/data/xml-schema.git/commit/?id=6070512ca Signed-off-by: Göktürk Yüksek --- xml-test/valid/metadata.xml | 1 + 1 file changed, 1 insertion

[gentoo-portage-dev] [PATCH] xml-test/invalid-attributes: test for invalid and disallowed attributes

2016-05-05 Thread Göktürk Yüksek
Signed-off-by: Göktürk Yüksek --- .../invalid-attributes-0.1.ebuild | 11 +++ xml-test/invalid-attributes/metadata.xml | 38 ++ 2 files changed, 49 insertions(+) create mode 100644 xml-test/invalid-attributes/invalid-attributes-0.1.ebuild

[gentoo-portage-dev] [PATCH] xml-test/missing-elements: test for missing mandatory elements

2016-05-05 Thread Göktürk Yüksek
Signed-off-by: Göktürk Yüksek --- xml-test/missing-elements/metadata.xml| 17 + xml-test/missing-elements/missing-elements-0.1.ebuild | 11 +++ 2 files changed, 28 insertions(+) create mode 100644 xml-test/missing-elements/metadata.xml create mode 100644

[gentoo-portage-dev] [PATCH] repoman: include HOME in the variable.readonly check

2016-05-04 Thread Göktürk Yüksek
According to the PMS section 11.1, HOME is a read-only variable. Include it in the list of read-only variables for the variable.readonly check in repoman. Signed-off-by: Göktürk Yüksek --- pym/repoman/modules/scan/ebuild/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[gentoo-portage-dev] [PATCH] xml-test/valid: valid metadata.xml test based on the example in GLEP 68

2016-05-03 Thread Göktürk Yüksek
Signed-off-by: Göktürk Yüksek --- xml-test/valid/metadata.xml | 64 + xml-test/valid/valid-0.1.ebuild | 12 2 files changed, 76 insertions(+) create mode 100644 xml-test/valid/metadata.xml create mode 100644 xml-test/valid/valid-0.1.ebuild

Re: [gentoo-portage-dev] [PATCH 2/2] xml-test/missing-attributes: missing mandatory attributes for various tags

2016-05-02 Thread Göktürk Yüksek
Brian Dolbec: > On Sun, 1 May 2016 18:38:50 -0700 > Brian Dolbec wrote: > >> On Sun, 1 May 2016 21:08:47 -0400 >> Göktürk Yüksek wrote: >> >>> Check for: >>> - type attribute in >>> - name attribute in >>> - name attribute in

Re: [gentoo-portage-dev] [PATCH 2/2] xml-test/missing-attributes: missing mandatory attributes for various tags

2016-05-01 Thread Göktürk Yüksek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Göktürk Yüksek: > Check for: - type attribute in - name attribute in > - name attribute in - type attribute for > > > Signed-off-by: Göktürk Yüksek --- > xml-test/missing-attributes/metadata.

[gentoo-portage-dev] [PATCH 1/2] xml-test/missing: test for a package with missing metadata.xml

2016-05-01 Thread Göktürk Yüksek
Signed-off-by: Göktürk Yüksek --- xml-test/missing/missing-0.1.ebuild | 13 + 1 file changed, 13 insertions(+) create mode 100644 xml-test/missing/missing-0.1.ebuild diff --git a/xml-test/missing/missing-0.1.ebuild b/xml-test/missing/missing-0.1.ebuild new file mode 100644 index

[gentoo-portage-dev] [PATCH 2/2] xml-test/missing-attributes: missing mandatory attributes for various tags

2016-05-01 Thread Göktürk Yüksek
Check for: - type attribute in - name attribute in - name attribute in - type attribute for Signed-off-by: Göktürk Yüksek --- xml-test/missing-attributes/metadata.xml | 23 ++ .../missing-attributes-0.1.ebuild | 13 2 files changed

[gentoo-portage-dev] [PATCH] bin/portageq: add a matcher to match the orphaned (maintainer-needed) packages

2016-03-06 Thread Göktürk Yüksek
Per GLEP 67, orphaned packages do not have a in metadata.xml. They can't be matched using '--maintainer-email=maintainer-nee...@gentoo.org' anymore. Add a new command line argument '--orphaned' to match the orphaned packages. Signed-off-by: Göktürk Yüksek --- bin/porta

[gentoo-portage-dev] [PATCH] bin/portageq: add a matcher to match the orphaned (maintainer-needed) packages

2016-03-06 Thread Göktürk Yüksek
Per GLEP 67, orphaned packages do not have a in metadata.xml. They can't be matched using '--maintainer-email=maintainer-nee...@gentoo.org' anymore. Add a new command line argument '--orphaned' to match the orphaned packages. Signed-off-by: Göktürk Yüksek --- bin/porta