Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=d90db7f85628197dd9044f3233975a1597c77d63

commit d90db7f85628197dd9044f3233975a1597c77d63
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Mon Jan 21 00:07:00 2008 +0100

tools/fpm2irc: replace group with the repo name

diff --git a/tools/fpm2irc b/tools/fpm2irc
index 3159b51..1c69a4f 100755
--- a/tools/fpm2irc
+++ b/tools/fpm2irc
@@ -39,12 +39,13 @@ def main(argv):
os.unsetenv("LANG")
os.unsetenv("LC_ALL")

+       repo = os.getcwd().split('/')[-2]
try:
-               os.getcwd().split('/')[-2].split('-')[1]
+               repo.split('-')[1]
except IndexError:
# this is some not frugalware-foo repo, just skip it
# well, there are a few exceptions
-               if os.getcwd().split('/')[-2] not in ['xorg73']:
+               if repo not in ['xorg73']:
sys.exit(0)

try:
@@ -76,7 +77,7 @@ def main(argv):
if uploader[:8] == "syncpkgd" and chan == "#frugalware":
chan = "#frugalware.dev"
lines.append("""c.privmsg("%s", "14packages7 %s3 %s/%s")""" % (
-                       chan, uploader, grp, os.path.basename(fpm[:-4])))
+                       chan, uploader, repo, os.path.basename(fpm[:-4])))

client = socket.socket ( socket.AF_UNIX, socket.SOCK_DGRAM )
client.connect (sockpath)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to