Dear list,

Rhnpush fails if a directory called 'rpm' exists within the supplied
--dir.
It fails because check_package_exists() in
/usr/share/rhn/rhnpush/rhnpush.py tries to open() the 'rpm' directory
and recieves an IOError.
This issue could be fixed with an if S_ISDIR statement somewhere in the
code to exclude directories and only process .rpm regular files, but i'm
not sure if that will break functionality that i'm not using in my
setup.

Regards,

Erick

[EMAIL PROTECTED] rhnpush]# ls -la /tmp/
total 3080
drwxrwxrwt   3 root   root    4096 Apr 17 13:43 .
drwxr-xr-x  25 root   root    4096 Apr 17 09:39 ..
drwxrwxrwt   2 root   root    4096 Apr 17 08:31 .ICE-unix
-rwxr-xr-x   1 root   root 3125693 Apr 17 13:30 pine-4.64-1.i386.rpm
-rw-r--r--   1 apache root       0 Apr 17 08:34 rhnccrewrite.lock
[EMAIL PROTECTED] rhnpush]# rhnpush --dir /tmp --username test --password test
--server https://10.10.10.100 -c xtra-test --nosig -vvv --force
Uploading files from directory /tmp
Connecting to https://10.10.10.100/APP
url is https://10.10.10.100/PACKAGE-PUSH
Result codes: 200 OK
Computing md5sum and package Info .This may take sometime ...
Uploading package /tmp/pine-4.64-1.i386.rpm
Using POST request

[EMAIL PROTECTED] rhnpush]# mkdir /tmp/rpm

[EMAIL PROTECTED] rhnpush]# rhnpush --dir /tmp --username test --password test
--server https://10.10.10.100 -c xtra-test --nosig -vvv --force
Uploading files from directory /tmp
Connecting to https://10.10.10.100/APP
url is https://10.10.10.100/PACKAGE-PUSH
Result codes: 200 OK
Computing md5sum and package Info .This may take sometime ...
ERROR: /tmp/rpm: No such file or directory available
[EMAIL PROTECTED] rhnpush]# 

***********************************************************************************
Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de
geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u
verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat
aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband
houdt met risico's verbonden aan het elektronisch verzenden van berichten.

This message may contain information that is not intended for you. If you are 
not
the addressee or if this message was sent to you by mistake, you are requested
to inform the sender and delete the message. The State accepts no liability for
damage of any kind resulting from the risks inherent in the electronic 
transmission
of messages.

Ministerie van Justitie.
***********************************************************************************


_______________________________________________
rhn-satellite-beta-users mailing list
rhn-satellite-beta-users@redhat.com
https://www.redhat.com/mailman/listinfo/rhn-satellite-beta-users

Reply via email to