Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#3794 - extra check for namcap

Attached to Project: Arch Linux
Opened by arjan timmerman (blaasvis) - Monday, 16 January 2006, 22:52 GMT
Last edited by Jason Chu (jason) - Tuesday, 01 May 2007, 03:44 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To Jason Chu (jason)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

error: the following file conflicts were found:
gdesklets: /opt/gnome/share/applications/mimeinfo.cache: exists in filesystem
gdesklets: /opt/gnome/share/mime/XMLnamespaces: exists in filesystem
gdesklets: /opt/gnome/share/mime/aliases: exists in filesystem
gdesklets: /opt/gnome/share/mime/globs: exists in filesystem
gdesklets: /opt/gnome/share/mime/magic: exists in filesystem
gdesklets: /opt/gnome/share/mime/subclasses: exists in filesystem

Please add a check for these files, they should be generated on install

This task depends upon

Closed by  Jason Chu (jason)
Tuesday, 01 May 2007, 03:44 GMT
Reason for closing:  Fixed
Comment by Aaron Griffin (phrakture) - Wednesday, 22 November 2006, 20:25 GMT
Bamf?

#
# namcap rules - gnomemime
# Copyright (C) 2003, 2004 Jason Chu <jason@archlinux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

import tarfile

class package:
def short_name(self):
return "gnomemime"
def long_name(self):
return "Checks for generated GNOME mime files"
def prereq(self):
return "tar"
def analyze(self, pkginfo, tar):
mime_files = [
'/opt/gnome/share/applications/mimeinfo.cache',
'/opt/gnome/share/mime/XMLnamespaces',
'/opt/gnome/share/mime/aliases',
'/opt/gnome/share/mime/globs',
'/opt/gnome/share/mime/magic',
'/opt/gnome/share/mime/subclasses'
]

ret = [[],[],[]]
for i in tar.getnames():
fileok = 0
if i in mime_files:
ret[1].append("File (" + i + ") is an auto-generated GNOME mime file")
return ret
def type(self):
return "tarball"
Comment by Jason Chu (jason) - Wednesday, 22 November 2006, 20:36 GMT
Nice.

I made a couple modifications, but it's in svn now.
Comment by Aaron Griffin (phrakture) - Wednesday, 22 November 2006, 20:41 GMT
Yeah, like formatting? 8)

Also, unused variable "fileok"

This one was easy, so I decided to close it out.

Loading...