anilkumar61 / munki

Automatically exported from code.google.com/p/munki
Other
0 stars 0 forks source link

munkiimporting a .app fails if you change the item name #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Removing a space from the item name fails:

galaga:repo_root pelle$ /usr/local/munki/munkiimport ~/Applications/The\ 
Unarchiver.app
Making disk image containing The Unarchiver.app...
created: /var/folders/m8/m8CDhrdvH-iq2BJ+b8+jyk+++TI/-Tmp-/tmpy79Ykt/The 
Unarchiver.dmg
Disk image created at: 
/var/folders/m8/m8CDhrdvH-iq2BJ+b8+jyk+++TI/-Tmp-/tmpy79Ykt/The Unarchiver.dmg
      Item name [The Unarchiver]: TheUnarchiver
   Display name []: 
    Description []: 
        Version [2.5.0.0.0]: 2.5
       Catalogs [testing]: 

      Item name: TheUnarchiver
   Display name: 
    Description: 
        Version: 2.5
     Catalogs: : testing

Import this item? [y/n] y
Upload installer item to subdirectory path [None]: 
Copying The Unarchiver.dmg to /Volumes/Munki/repo_root/pkgs/The 
Unarchiver.dmg...
Traceback (most recent call last):
  File "/usr/local/munki/munkiimport", line 417, in <module>
    main()
  File "/usr/local/munki/munkiimport", line 407, in main
    pkginfo_path = copyPkginfoToRepo(pkginfo, options.subdirectory)
  File "/usr/local/munki/munkiimport", line 185, in copyPkginfoToRepo
    index, pkginfo_ext)
TypeError: not all arguments converted during string formatting

Original issue reported on code.google.com by MagerV...@gmail.com on 21 Oct 2010 at 11:56

GoogleCodeExporter commented 9 years ago
Fixed in r835.

This wasn't becuase you changed the item name, it was because you already had a 
pkginfo file with the same pathname and munkiimport had a Python syntax error 
when trying to generate a new unique name.

Original comment by gregnea...@mac.com on 21 Oct 2010 at 1:29