Package: debian-xcontrol
Version: 0.0.2~pre1+nmu2
Followup-For: Bug #479235

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have looked the source and this is the inital patch to solve the problem.
I know may be it sucks. But I think check works.

Thanks in advance.

- -- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/1 CPU core)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIHahOS/DSSd0S8lMRAjk3AJ45JHt72y4UgiOzSbB87DnHrmAcGQCeMfZ+
NasrsN9DltZTxPvyHpoYEyc=
=gM0S
-----END PGP SIGNATURE-----
>From 2a7bf1be1ca434cc2941ae678f44689c37596e54 Mon Sep 17 00:00:00 2001
From: maniac <[EMAIL PROTECTED]>
Date: Sat, 3 May 2008 21:00:10 +0200
Subject: [PATCH] Adding new fields

---
 debian/changelog      |    7 +++++++
 src/source_section.cc |   12 ++++++++++++
 src/source_section.h  |    3 +++
 3 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9acf983..5ffbe68 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debian-xcontrol (0.0.2~pre1+nmu3) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Added new Vsc-*, Vsc-Browser and Homepage source sections.
+
+ -- Victor Seva <[EMAIL PROTECTED]>  Sat, 03 May 2008 20:22:52 +0200
+
 debian-xcontrol (0.0.2~pre1+nmu2) unstable; urgency=low
 
   * Non-maintainer upload.
diff --git a/src/source_section.cc b/src/source_section.cc
index 0b4eb79..a71c082 100644
--- a/src/source_section.cc
+++ b/src/source_section.cc
@@ -23,6 +23,12 @@ source_section::operator[](attribute_selector_type const &key)
 		return attribute(&source_section::build_depends_tools, *this);
 	if(key == "Standards-Version")
 		return attribute(&source_section::standards_version, *this);
+	if(key == "Homepage")
+		return attribute(&source_section::homepage, *this);
+	if(key == "Vcs-Browser")
+		return attribute(&source_section::vcs_browser, *this);
+	if(key == "Vcs-Arch" || key == "Vcs-Bzr" || key == "Vcs-Cvs" || key == "Vcs-Darcs" || key == "Vcs-Git" || key == "Vcs-Hg" || key == "Vcs-Mtn" || key == "Vcs-Svn" )
+		return attribute(&source_section::vcs_asterisk, *this);
 	throw attribute::unknown_attribute(key);
 }
 
@@ -42,6 +48,12 @@ bool source_section::operator==(source_section const &rhs) const
 		return false;
 	if(standards_version != rhs.standards_version)
 		return false;
+	if(homepage != rhs.homepage)
+		return false;
+	if(vcs_browser != rhs.vcs_browser)
+		return false;
+	if(vcs_asterisk != rhs.vcs_asterisk)
+		return false;
 	return true;
 }
 
diff --git a/src/source_section.h b/src/source_section.h
index 3a0be60..2621ee8 100644
--- a/src/source_section.h
+++ b/src/source_section.h
@@ -36,6 +36,9 @@ public:
 	dependency_list build_depends_indep;
 	dependency_list build_depends_tools;
 	std::string standards_version;
+	std::string vcs_asterisk;
+	std::string vcs_browser;
+	std::string homepage;
 };
 
 control_file_ostream &operator<<(control_file_ostream &stream, source_section const &source);
-- 
1.5.5.1

Reply via email to