backend/satellite_tools/spacewalk-update-signatures | 2
backend/satellite_tools/spacewalk-update-signatures.sgml | 73 +++++++++++++++
backend/spacewalk-backend.spec | 1
3 files changed, 76 insertions(+)
New commits:
commit 84fc63b9b2834c72ee3a86d74067009dc456bcb1
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Oct 25 21:55:14 2010 +0200
623967 - write man page for spacewalk-update-signatures
diff --git a/backend/satellite_tools/spacewalk-update-signatures.sgml
b/backend/satellite_tools/spacewalk-update-signatures.sgml
new file mode 100644
index 0000000..1292818
--- /dev/null
+++ b/backend/satellite_tools/spacewalk-update-signatures.sgml
@@ -0,0 +1,73 @@
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
+<!ENTITY RHNSAT "Spacewalk Server" >
+
+]>
+<refentry>
+
+<RefMeta>
+<RefEntryTitle>spacewalk-update-signatures</RefEntryTitle><manvolnum>8</manvolnum>
+</RefMeta>
+
+<RefNameDiv>
+<RefName><command>spacewalk-update-signatures</command></RefName>
+<RefPurpose>
+Helper utility that update packages checksum.
+</RefPurpose>
+</RefNameDiv>
+
+<RefSynopsisDiv>
+<Synopsis>
+ <cmdsynopsis>
+ <command>spacewalk-update-signatures</command>
+ </cmdsynopsis>
+</Synopsis>
+</RefSynopsisDiv>
+
+<RefSect1><Title>Description</Title>
+
+<para>
+ The <emphasis>spacewalk-update-signatures</emphasis>) is a
+ helper utility that recalculate checksum of packages in db. New
+ checksum is calculated from files on disk.
+</para>
+<para>
+ You should not run this utility unless you know what are you doing.
+ This is not needed in normal day-to-day operations.
+</para>
+</RefSect1>
+
+<RefSect1><Title>Options</Title>
+<variablelist>
+ <varlistentry>
+ <term>--help</term>
+ <listitem>
+ <para>Display usage and exit.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>-v, --verbose</term>
+ <listitem>
+ <para>Increase verbosity.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>-d DB, --db=DB</term>
+ <listitem>
+ <para>DB string to connect to.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>--debug</term>
+ <listitem>
+ <para>Logs the debug information to a log file
/var/log/rhn/update-packages.log</para>
+ </listitem>
+ </varlistentry>
+</variablelist>
+</RefSect1>
+
+<RefSect1><Title>Authors</Title>
+<simplelist>
+ <member>Pradeep Kilambi
<email>pkilambi(a)redhat.com</email></member>
+</simplelist>
+</RefSect1>
+</RefEntry>
diff --git a/backend/spacewalk-backend.spec b/backend/spacewalk-backend.spec
index a84c833..9001273 100644
--- a/backend/spacewalk-backend.spec
+++ b/backend/spacewalk-backend.spec
@@ -644,6 +644,7 @@ rm -f %{rhnconf}/rhnSecret.py*
%{_mandir}/man8/satwho.8*
%{_mandir}/man8/spacewalk-remove-channel.8*
%{_mandir}/man8/spacewalk-repo-sync.8*
+%{_mandir}/man8/spacewalk-update-signatures.8*
%files xml-export-libs
%defattr(-,root,root)
commit 0ba6724affa7e5e670756484a62456e8c7c1b338
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Oct 25 21:41:26 2010 +0200
if package is not on disk do not throw TB
addressing:
Traceback (most recent call last):
File "/usr/bin/spacewalk-update-signatures", line 147, in ?
main()
File "/usr/bin/spacewalk-update-signatures", line 76, in main
process_package_data()
File "/usr/bin/spacewalk-update-signatures", line 115, in
process_package_data
full_path = os.path.join(CFG.MOUNT_POINT, path)
File "/usr/lib64/python2.4/posixpath.py", line 60, in join
if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'
diff --git a/backend/satellite_tools/spacewalk-update-signatures
b/backend/satellite_tools/spacewalk-update-signatures
index c945c98..35b909f 100644
--- a/backend/satellite_tools/spacewalk-update-signatures
+++ b/backend/satellite_tools/spacewalk-update-signatures
@@ -109,6 +109,8 @@ def process_package_data():
pb.printIncrement()
path = pkg['path']
+ if path is None:
+ continue
full_path = os.path.join(CFG.MOUNT_POINT, path)
checksum_type = pkg['checksum_type']
checksum = pkg['checksum']
Show replies by date