Author: schubi2 Date: Thu Oct 4 14:14:41 2007 New Revision: 7437 URL: http://svn.opensuse.org/viewcvs/zypp?rev=7437&view=rev Log: added vendor to pattern, scripts, patches... Modified: trunk/libzypp-testsuite/src/helix/HelixAtomImpl.cc trunk/libzypp-testsuite/src/helix/HelixAtomImpl.h trunk/libzypp-testsuite/src/helix/HelixMessageImpl.cc trunk/libzypp-testsuite/src/helix/HelixMessageImpl.h trunk/libzypp-testsuite/src/helix/HelixPackageImpl.h trunk/libzypp-testsuite/src/helix/HelixPatchImpl.cc trunk/libzypp-testsuite/src/helix/HelixPatchImpl.h trunk/libzypp-testsuite/src/helix/HelixPatternImpl.cc trunk/libzypp-testsuite/src/helix/HelixPatternImpl.h trunk/libzypp-testsuite/src/helix/HelixProductImpl.cc trunk/libzypp-testsuite/src/helix/HelixProductImpl.h trunk/libzypp-testsuite/src/helix/HelixScriptImpl.cc trunk/libzypp-testsuite/src/helix/HelixScriptImpl.h Modified: trunk/libzypp-testsuite/src/helix/HelixAtomImpl.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixAtomImpl.cc?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixAtomImpl.cc (original) +++ trunk/libzypp-testsuite/src/helix/HelixAtomImpl.cc Thu Oct 4 14:14:41 2007 @@ -31,6 +31,7 @@ */ HelixAtomImpl::HelixAtomImpl (Repository source_r, const zypp::HelixParser & parsed) : _source (source_r) + , _vendor(parsed.vendor) { } @@ -38,6 +39,14 @@ HelixAtomImpl::repository() const { return _source; } +Vendor HelixAtomImpl::vendor() const +{ + if ( _vendor == "") + return "SUSE LINUX Products GmbH, Nuernberg, Germany"; + return _vendor; +} + + ///////////////////////////////////////////////////////////////// } // namespace zypp /////////////////////////////////////////////////////////////////// Modified: trunk/libzypp-testsuite/src/helix/HelixAtomImpl.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixAtomImpl.h?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixAtomImpl.h (original) +++ trunk/libzypp-testsuite/src/helix/HelixAtomImpl.h Thu Oct 4 14:14:41 2007 @@ -37,8 +37,13 @@ /** */ virtual Repository repository() const; + /** */ + virtual Vendor vendor() const; + + protected: Repository _source; + Vendor _vendor; }; Modified: trunk/libzypp-testsuite/src/helix/HelixMessageImpl.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixMessageImpl.cc?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixMessageImpl.cc (original) +++ trunk/libzypp-testsuite/src/helix/HelixMessageImpl.cc Thu Oct 4 14:14:41 2007 @@ -31,6 +31,7 @@ */ HelixMessageImpl::HelixMessageImpl (Repository source_r, const zypp::HelixParser & parsed) : _source (source_r) + , _vendor(parsed.vendor) { } @@ -50,6 +51,14 @@ HelixMessageImpl::size() const { return _size_installed; } +Vendor HelixMessageImpl::vendor() const +{ + if ( _vendor == "") + return "SUSE LINUX Products GmbH, Nuernberg, Germany"; + return _vendor; +} + + ///////////////////////////////////////////////////////////////// } // namespace zypp /////////////////////////////////////////////////////////////////// Modified: trunk/libzypp-testsuite/src/helix/HelixMessageImpl.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixMessageImpl.h?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixMessageImpl.h (original) +++ trunk/libzypp-testsuite/src/helix/HelixMessageImpl.h Thu Oct 4 14:14:41 2007 @@ -38,13 +38,16 @@ std::string type () const; virtual ByteCount size() const; /** */ - virtual Repository repository() const; + virtual Repository repository() const; + /** */ + virtual Vendor vendor() const; protected: Repository _source; TranslatedText _text; std::string _type; ByteCount _size_installed; + Vendor _vendor; }; Modified: trunk/libzypp-testsuite/src/helix/HelixPackageImpl.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixPackageImpl.h?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixPackageImpl.h (original) +++ trunk/libzypp-testsuite/src/helix/HelixPackageImpl.h Thu Oct 4 14:14:41 2007 @@ -59,12 +59,10 @@ TranslatedText _description; PackageGroup _group; bool _install_only; - Vendor _vendor; - ByteCount _size_installed; ByteCount _size_archive; - unsigned int _mediaid; + Vendor _vendor; }; ///////////////////////////////////////////////////////////////// Modified: trunk/libzypp-testsuite/src/helix/HelixPatchImpl.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixPatchImpl.cc?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixPatchImpl.cc (original) +++ trunk/libzypp-testsuite/src/helix/HelixPatchImpl.cc Thu Oct 4 14:14:41 2007 @@ -32,6 +32,7 @@ HelixPatchImpl::HelixPatchImpl (Repository source_r, const zypp::HelixParser & parsed) : _source (source_r) , _size_installed(parsed.installedSize) + , _vendor(parsed.vendor) { } @@ -66,6 +67,14 @@ PatchImplIf::AtomList HelixPatchImpl::all_atoms() const { return AtomList(); } +Vendor HelixPatchImpl::vendor() const +{ + if ( _vendor == "") + return "SUSE LINUX Products GmbH, Nuernberg, Germany"; + return _vendor; +} + + ///////////////////////////////////////////////////////////////// } // namespace zypp Modified: trunk/libzypp-testsuite/src/helix/HelixPatchImpl.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixPatchImpl.h?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixPatchImpl.h (original) +++ trunk/libzypp-testsuite/src/helix/HelixPatchImpl.h Thu Oct 4 14:14:41 2007 @@ -51,10 +51,14 @@ virtual AtomList all_atoms() const; /** */ virtual Repository repository() const; + /** */ + virtual Vendor vendor() const; + protected: Repository _source; ByteCount _size_installed; + Vendor _vendor; }; ///////////////////////////////////////////////////////////////// } // namespace zypp Modified: trunk/libzypp-testsuite/src/helix/HelixPatternImpl.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixPatternImpl.cc?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixPatternImpl.cc (original) +++ trunk/libzypp-testsuite/src/helix/HelixPatternImpl.cc Thu Oct 4 14:14:41 2007 @@ -37,6 +37,7 @@ , _install_only(parsed.installOnly) , _size_installed(parsed.installedSize) , _size_archive(parsed.fileSize) + , _vendor(parsed.vendor) { } @@ -65,6 +66,12 @@ bool HelixPatternImpl::installOnly() const { return _install_only; } +Vendor HelixPatternImpl::vendor() const +{ + if ( _vendor == "") + return "SUSE LINUX Products GmbH, Nuernberg, Germany"; + return _vendor; +} ///////////////////////////////////////////////////////////////// } // namespace zypp Modified: trunk/libzypp-testsuite/src/helix/HelixPatternImpl.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixPatternImpl.h?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixPatternImpl.h (original) +++ trunk/libzypp-testsuite/src/helix/HelixPatternImpl.h Thu Oct 4 14:14:41 2007 @@ -46,9 +46,10 @@ /** */ virtual bool installOnly() const; /** */ - - /** */ virtual Repository repository() const; + /** */ + virtual Vendor vendor() const; + protected: Repository _source; TranslatedText _summary; @@ -58,7 +59,7 @@ ByteCount _size_installed; ByteCount _size_archive; - + Vendor _vendor; }; ///////////////////////////////////////////////////////////////// Modified: trunk/libzypp-testsuite/src/helix/HelixProductImpl.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixProductImpl.cc?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixProductImpl.cc (original) +++ trunk/libzypp-testsuite/src/helix/HelixProductImpl.cc Thu Oct 4 14:14:41 2007 @@ -37,6 +37,7 @@ , _install_only(parsed.installOnly) , _size_installed(parsed.installedSize) , _size_archive(parsed.fileSize) + , _vendor(parsed.vendor) { } @@ -65,6 +66,14 @@ bool HelixProductImpl::installOnly() const { return _install_only; } +Vendor HelixProductImpl::vendor() const +{ + if ( _vendor == "") + return "SUSE LINUX Products GmbH, Nuernberg, Germany"; + return _vendor; +} + + ///////////////////////////////////////////////////////////////// } // namespace zypp Modified: trunk/libzypp-testsuite/src/helix/HelixProductImpl.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixProductImpl.h?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixProductImpl.h (original) +++ trunk/libzypp-testsuite/src/helix/HelixProductImpl.h Thu Oct 4 14:14:41 2007 @@ -50,12 +50,17 @@ /** */ virtual Repository repository() const; + /** */ + virtual Vendor vendor() const; + + protected: Repository _source; TranslatedText _summary; TranslatedText _description; PackageGroup _group; bool _install_only; + Vendor _vendor; ByteCount _size_installed; ByteCount _size_archive; Modified: trunk/libzypp-testsuite/src/helix/HelixScriptImpl.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixScriptImpl.cc?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixScriptImpl.cc (original) +++ trunk/libzypp-testsuite/src/helix/HelixScriptImpl.cc Thu Oct 4 14:14:41 2007 @@ -32,6 +32,7 @@ HelixScriptImpl::HelixScriptImpl (Repository source_r, const zypp::HelixParser & parsed) : _source (source_r) , _size_installed(parsed.installedSize) + , _vendor(parsed.vendor) { } @@ -42,6 +43,14 @@ ByteCount HelixScriptImpl::size() const { return _size_installed; } +Vendor HelixScriptImpl::vendor() const +{ + if ( _vendor == "") + return "SUSE LINUX Products GmbH, Nuernberg, Germany"; + return _vendor; +} + + ///////////////////////////////////////////////////////////////// } // namespace zypp /////////////////////////////////////////////////////////////////// Modified: trunk/libzypp-testsuite/src/helix/HelixScriptImpl.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-testsuite/src/helix/HelixScriptImpl.h?rev=7437&r1=7436&r2=7437&view=diff ============================================================================== --- trunk/libzypp-testsuite/src/helix/HelixScriptImpl.h (original) +++ trunk/libzypp-testsuite/src/helix/HelixScriptImpl.h Thu Oct 4 14:14:41 2007 @@ -40,9 +40,14 @@ /** */ virtual Repository repository() const; + /** */ + virtual Vendor vendor() const; + + protected: Repository _source; ByteCount _size_installed; + Vendor _vendor; }; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org